The methods window.altert
, window.confirm
, and window.prompt
are methods of the window object. Which of the following is not true?
- The
alert
,confrim
, andprompt
methods require an argument specifying the position of the dialog in which the information will be displayed. - The
alert
,confirm
, andprompt
methods display information in modal windows that block access to the page until they are closed. - You can call
window
methods, such aswindow.alert
, without including the name window, so callingalert("abc")
would be correct. - The
window
object represents the window in which the HTML document containing the JavaScript code currently being executed is open.
Answers Explanation & Hints:
The statement “The alert, confirm, and prompt methods require an argument specifying the position of the dialog in which the information will be displayed” is not true. The position of the dialog in which the information will be displayed is not specified as an argument when using the The correct information regarding the given options is as follows:
So, the statement “The alert, confirm, and prompt methods require an argument specifying the position of the dialog in which the information will be displayed” is not true. |