Redirect one webpage to other using Javascript/JQuery

There are so many ways to redirect one javascript file to other. As per my knowledge i am showing below ways, If any one knows any other way they can tell in the comments section.

// it won't store information about previous page.

// best way to use
window.location.href = "";

//using javascript only.
window.location = "";

//Using JQuery way - 1
var url = "";   

//Using JQuery way  - 2.

//redirecting to the home page.
window.location =

Post a Comment