jquery window.location.href _blank
window.location.host > www.example.com:8000 window.location.hostname > www.exmaple.com window.location.
Here is the JQuery code for redirecting a page. Since, I have put this code on (document).ready() function, it will execute as soon as page is loaded.You only need to change window.location.href property to redirect a page. Step 3: Put the buttons for opening the URL in the same window or another window or tab.