What\'s the preferred method to use to change the location of the current web page using JavaScript? I\'ve seen both window.navigate and document.location used. Are there an
support for document.location is also good though its a deprecated method.
I've been using this method for a while with no problems.
you can refer here for more details: