<head> <script language="JavaScript"> function function1(){ myDiv.style.posTop = 500; } </script> </head> <body> <div id="myDiv" style="background-color:#ccffcc; position:absolute; width:300; cursor:hand"; onclick="function1()"> Click your mouse. </div> </body>