adplus-dvertising
frame-decoration

Question

Which Window object method is used to display message in a dialog box?

a.

alert()

b.

prompt()

c.

message()

d.

none of the mentioned

Posted under JavaScript

Answer: (a).alert()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which Window object method is used to display message in a dialog box?

Similar Questions

Discover Related MCQs

Q. The setTimeout() method is used to

Q. Which of the following is a global object?

Q. When will the window property come into play?

Q. Which is the property that represents the content displayed in the window?

Q. How to pick a document element based on the value of its id attribute?

Q. What is the property to access the first child of a node?

Q. What are the properties supporting CSS styles for a document element?

Q. The style property belongs to while of the following object?

Q. What is the purpose of the event handlers in the JavaScript?

Q. Which handler is triggered when the content of the document in the window is stable and ready for manipulation?

Q. When a program contains extensive use of event handlers, which of the following is necessary?

Q. What is the code snippet to find all container elements with class 'reveal'?

Q. What is the code snippet to update the content of the timestamp element when the user clicks on it?

Q. Which of the following is not an object?

Q. What is the code snippet to change the class and let the stylesheet specify the details?

Q. The libraries that build a new higher-level API for client-side programming is

Q. Which of the following is not a framework?

Q. Which of the following frameworks focuses on DOM and Ajax utilities?

Q. What is the purpose of Dojo framework?

Q. Which is the in-house library of Yahoo!?