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';
function a(){
//do something
}
d=document.getElementById('sth');
d.onsomeevent=a;
d.onsomeevent.prototype.s='my own string';