-
How to redirect to another page?
- window.location.href = "https://www.newPage.html";
- window.location.src = "https://www.newPage.html";
- window.location.url = "https://www.newPage.html";
- window.url = "https://www.newPage.html";
-
The object contains information such as resolution, color depth, pixel depth is
- window
- location
- screen
- history
-
The method of the History object is used to go back to the previous page in session history is
- window.history.back()
- window.history.forward()
- window.history.go(-2);
- window.history.go();
- The window object is used to access the browser window.
- The screen object is used to access the screen information of the browser, such as resolution.
- The location object is used to access or change the URL of the current page.
- The navigator object is used to access the browser window information.
- The history object is used to access the URL of the current page.
- The method setTimeout() is used to execute a code repeatedly after a given interval.
- window object
- history object
- location object
- navigator object
- screen object
- Try to explain the most important objects of BOM?
- Try to explain the difference between window and document object.
- Try to explain the difference between setInterval() and setTimeout().