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

Leave a Reply

Your email address will not be published. Required fields are marked *