I can navigate web pages with window.open("http://www.example.com", "_self");
and it will work with all browsers.
But when I use the following code:
function f1()
{
window.navigate("http://www.example.com");
}
It only works in Internet Explorer. It won't work in Firefox or other browsers. Why? And how can I fix that?
Here is my HTML code:
<input id="Button1" type="button" value="Try" onclick="f1()" />