jqueryexample.com jquery - replace url - jqueryexample.com

jquery – replace url by jqueryuser

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');
         });
Did you like this? Share it:

Discussion

No comments yet, be the first.

Leave a Comment