simple onmouseover to call javascript not working

Posted by tic on Stack Overflow See other posts from Stack Overflow or by tic
Published on 2010-03-14T00:17:45Z Indexed on 2010/03/14 0:25 UTC
Read the original article Hit count: 625

In a simple html page I have:

<SCRIPT>
function Clicker(number){
if (number == 1) 
document.write ('<style type="text/css">body {background-color: #cccccc;}</style>');
}
</SCRIPT>

and in the html body:

<a onmouseclick="Clicker(1)" href="#">clic</a>

But when I click on the link nothing happens. Where am I wrong?

© Stack Overflow or respective owner

Related posts about onmouseover

Related posts about JavaScript