[Javascript] item.onclick = "alert('foo');";

Anthony Ettinger apwebdesign at yahoo.com
Sun Nov 6 17:01:34 CST 2005


this doesn't seem to work:

var item = document.getElementById('foo');
item.onclick = "alert('foo');";

http://developer.mozilla.org/en/docs/DOM:element.onclick

Anthony Ettinger
ph: (408) 656-2473
web: http://www.apwebdesign.com



More information about the Javascript mailing list