1.

Which Window object method is used to display a message in a dialog box?(a) alert()(b) prompt()(c) message()(d) console.logThe question was posed to me in homework.Query is from JavaScript in Web Browsers in portion Server-Side and Client-Side Scripting of JavaScript

Answer»

Right option is (a) ALERT()

Explanation: The Window object defines METHODS like alert(), which DISPLAYS a MESSAGE in a dialog box. A prompt message can be displayed on the screen USING alert().



Discussion

No Comment Found

Related InterviewSolutions