How to redirect a page in JavaScript or jQuery? - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

How to redirect a page in JavaScript or jQuery?

Damian99Damian99 USAPosts: 116Member

Please let me know how to redirect a user from a page to another page using JavaScript or JQuery.

Tagged:

Comments

  • DavidMDavidM USAPosts: 342Member

    I recommend using pure JavaScript instead of JQuery. Use window.location.replace()

    ex. window.location.replace("http://yoursite.com");

Sign In or Register to comment.