Menu
Say I just created a new div:
[CODE]
var div = document.createElement(‘div’);
Now, I want to add a onmouseover=’myFunc()’; to it. I tried things like:
[CODE]
div.onmouseover = ‘myfunc()’;
But, nothing seems to work. I am assuming I am doing it the wrong way. Any suggestions on how to do it the right way?
Thanks