jquery – replace url

To Change url in jQuery I am using replace() function.
Replace function replaces the current location in the address bar by a new one.

$("#SubmitBtn").click(function () {
             window.location.replace('newpageurl.html');
         });
Share this nice post:

One thought on “jquery – replace url

  1. As a Newbie, I am permanently looking online for articles that can support me. Thank you

Comments are closed.