Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

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