Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] item.onclick = "alert('foo');";
- From: Dwayne.Conyers at nga.mil (Conyers, Dwayne, Mr [C])
- Subject: [Javascript] item.onclick = "alert('foo');";
- Date: Mon Nov 7 13:15:10 2005
On Nov 6, 2005, at 6:01 PM, Anthony Ettinger wrote:
> this doesn't seem to work:
>
> var item = document.getElementById('foo'); item.onclick =
> "alert('foo');";
I believe it should be "JavaScript:alert('foo');"
Assuming you want to popup a dialog with the word "foo" and an "ok" button.
---
Dwayne
www.cafepress.com/dwacon
- Follow-Ups:
- [Javascript] item.onclick = "alert('foo');";
- From: Anthony Ettinger
- [Javascript] item.onclick = "alert('foo');";
- Prev by Date: [Javascript] item.onclick = "alert('foo');";
- Next by Date: [Javascript] item.onclick = "alert('foo');";
- Previous by thread: [Javascript] item.onclick = "alert('foo');";
- Next by thread: [Javascript] item.onclick = "alert('foo');";
- Index(es):