hi all,
i'm trying to dynamically assign an event handler for an onmouseover event on a <Li> element.
i need to pass the event as a parameter to the handler as follows
<script language="javas cript">
newLi=document. createElement(" li")
newLi.onmouseov er=bulkVal( ' some string ',event)
but i cant get it to work in FF1
in IE6 it works but the event fires before the mouse is over the element, it fires once and that's it no more..
i know that the event is passed implicitly to the handler so, if i change the word event to something like evt i get a message telling me that evt is not specified, if i ommit it it generates an error.
if anybody can help , fast plz
regards
i'm trying to dynamically assign an event handler for an onmouseover event on a <Li> element.
i need to pass the event as a parameter to the handler as follows
<script language="javas cript">
newLi=document. createElement(" li")
newLi.onmouseov er=bulkVal( ' some string ',event)
but i cant get it to work in FF1
in IE6 it works but the event fires before the mouse is over the element, it fires once and that's it no more..
i know that the event is passed implicitly to the handler so, if i change the word event to something like evt i get a message telling me that evt is not specified, if i ommit it it generates an error.
if anybody can help , fast plz
regards
Comment