R
Rupe
I wish to add an event to an element, but I wish to add arguments to
the calling method, eg like so:
element.attachEvent('onclick',startDragDrop('arg1',arg2'))
I understand this is not possible. For a non windows browser I have
been successful with the following code:
newA.data = "argumentText"
if(navigator.appName=="Microsoft Internet Explorer"){
//attach events
}
else{
newA.onmouseover = function handler(evt){imageOn(this.data);}
newA.onmouseout = function handler(evt){imageOff(this.data);}
}
by way of a handler, but how could I do this with the IE? the same
code won't work
the calling method, eg like so:
element.attachEvent('onclick',startDragDrop('arg1',arg2'))
I understand this is not possible. For a non windows browser I have
been successful with the following code:
newA.data = "argumentText"
if(navigator.appName=="Microsoft Internet Explorer"){
//attach events
}
else{
newA.onmouseover = function handler(evt){imageOn(this.data);}
newA.onmouseout = function handler(evt){imageOff(this.data);}
}
by way of a handler, but how could I do this with the IE? the same
code won't work