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: apwebdesign at yahoo.com (Anthony Ettinger)
  • Subject: [Javascript] item.onclick = "alert('foo');";
  • Date: Mon Nov 7 11:19:09 2005

nevermind, i figured out that it can only be a
function reference, not a call.

item.onclick = foo;



--- Anthony Ettinger <apwebdesign@xxxxxxxxx> wrote:

> 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
> _______________________________________________
> Javascript mailing list
> Javascript@xxxxxxxxxx
> https://lists.LaTech.edu/mailman/listinfo/javascript
> 


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