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

php - Passing multiple values in a url using checkbox -

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

sql - Postgresql tables exists, but getting "relation does not exist" when querying -