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

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

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

asp.net mvc - breakpoint on javascript in CSHTML? -