PDA

View Full Version : .onmousemove.prototype


looka
06-21-2005, 03:18 PM
because of various reasons i would like to have not only function to be evaluated onevent, but also some variables stored in that object.


function a(){
//do something
}

d=document.getElementById('sth');
d.onsomeevent=a;
d.onsomeevent.prototype.s='my own string';

looka
06-21-2005, 05:00 PM
it was prototype which was redundand:)

element.onmousemove=funName;
element.onmousemove.f='something';

works just fine.