button javascript works on IE but not firefox window.navigate()
html, internet-explorer-8, javascript
Solution
If you check the documentation for that method, you will see the quite common:
There is no public standard that applies to this method.
This means that it's a non-standard feature that most likely only works in Internet Explorer.
This will work:
<input type="button" value="Back" onclick="window.location.href='http://www.google.com';">
If you are using XHTML:
<input type="button" value="Back" onclick="window.location.href='http://www.google.com';" />
Problem
``` <input type="button" value="Back" onClick="window.navigate('http://www.google.com')"> ``` This works on IE8, but not firefox or opera. Anyone know why and how to fix it?