I used BODY tag just for an example.
Also if I use:
var temp = document.getElementsByTagName('DIV');
still doesn't work :(
If I put all the code into a function, and call her by
window.onload (or body[0].onload) I've the same result: it pops at the start.
Could you try my code just to see if...
It doesn't work in my browser.
The javascript console write me:
Component not available (at line 13)
I get the same error if I write:
linkz.onclick = function() { Do(); };
linkz.onclick = function() { Do; };
OR
linkz.onclick = function() { alert("Hello"); };
but if I write:
linkEsper.onclick...
The code below (userJS code) simply create a link, and If click on that link, it pops up an alert.
It seems to work, but have a problem:
the alert associated with onclick event pops automatically when the page starts... I really don't know how it may happen...
I'm using FF, maybe it's a setting...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.