[thelist] Events

Chris Marsh chris at webbtech.co.uk
Fri Nov 1 14:33:00 CST 2002


[..]
> > Yes it can be done, only you need to write "onclick", not
> "onClick",
> > which will throw an error. The same goes for "onMouseOver"
> > (element.onmouseover), onmouseout, onload, onunload, etc
>
> And you need to define it as a function:
>
>   foo.onclick = function { alert("Eureka!") }
>
> or
>
>   function fooClick() {
>     alert("Eureka!")
>   }
>
>   foo.onclick = fooClick

Thanks a lot fellas. I haven't had time yet to implement it yet, but the
assistance is very much appreciated.

Regards

Chris Marsh





More information about the thelist mailing list