onClick='location.href=index.htm'> not working

Posted on 16th Feb 2014 by admin

Below is my code:

echo "<input type='button' value='redirect' onClick='location.href=index.htm'>";

what is wrong with the code?? it's not working

Other forums