The window.location object can be written without the window prefix. When you assign a function like that, you need to be sure not to invoke it. To redirect a page using javascript on page load, you can use the window.location object to set the url of the page.
American Airlines Login How to Sign in to Account
The window.location object can be used to get the current page address (url) and to redirect the browser to a new page. Some results have been removedpagination123next</ol> Console.log('the page has fully loaded');
When you put parentheses on the end of a function name, it will be invoked immediately even if it's.
Alternatively, you can use the onload. How can i get javascript to immediately stop script execution and change to another page. To handle the load event, you register an event listener using the addeventlistener() method: