![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.javascript archiveAdd EventListener to <a href...> tag
From: Fabio Cavassini <cavassinif@gmail.com>
Date: Thu Dec 15 2005 - 22:06:16 CET
I want to clean my html from JavaScript and attach all EventHanding
document.getElementById('to').addEventListener('onMouseout',delayhidemenu,false);
that way, I can work with a clean HTML page and a separate JavaScript
But, I can't make it work with links, having:
<SCRIPT LANGUAGE="JavaScript">
Produces the error: The object doesn't accept this property or method.
How can I add an event handler to a <a> tag?
Best Regards
|