Home >Web Front-end >JS Tutorial >Introduction to the differences between window.navigate and window.location.href_Basic knowledge
The first thing to explain is that window.navigate and window.location.href both implement page link jumps. Their differences will be introduced below.
window.navigate("http://jb51.net/") This method is only for IE and does not apply to other browsers such as Firefox. In the HTML DOM Window Object, the window is not listed at all. .navigate method, so use this method as little as possible, and it is best to forget it.
The location attribute is compatible with all browsers. Therefore, it is more reliable to use this when implementing page jumps, such as:
Script Home