Javascript changing position won't work on Chrome or IE -


changing position through javascript works through firefox not chrome or ie.

<script language="javascript"> function move (){   document.cat.style.right=0; } </script> <img src="cat.gif" id="cat" style="position:absolute; right:500; top:500" onclick="move ();"> 

also, first time asking on here if i'm doing wrong please tell me.

var catstyle = document.getelementbyid('cat'); catstyle.style.right=0;


Comments

Popular posts from this blog

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

javascript - return highlighted cells to php -

java - Creating a room by reading from a file (for a game) -