The methods window.alert, window.confirm, and window.prompt are methods of the window object. Which of the following is not true?
- The window object represents the window in which the HTML document containing the JavaScript code currently being executed is open.
- The alert, confirm, and prompt methods display information in modal windows that block access to the page until they are closed.
- You can call window methods, such as window.alert, without including the name window, so calling alert(“abc”) would be correct.
- The alert, confirm, and prompt methods require an argument specifying the position of the dialog box in which the information will be displayed.
More Questions: JavaScript Essentials 1 – JSE1: Module 3 Test
Please login or Register to submit your answer