Interview Questions

1. What is the use of window objects?

The window object is created automatically by the browser that represents a window of a browser. It is not an object of JavaScript. It is a browser object.

The window object is used to display the popup dialog box. Let's see with the description.

MethodDescription
alert()displays the alert box containing the message with the ok button.
confirm()displays the confirm dialog box containing the message with the ok and cancel button.
prompt()displays a dialog box to get input from the user.
open()opens the new window.
close()closes the current window.
setTimeout()performs the action after a specified time like calling function, evaluating expressions.
By Md Riyazuddin 2 0
Is this helpful? Yes No

Submit an interview question

Submitted questions and answers are subject to review and editing, and may or may not be selected for posting, at the sole discretion of w3Sniff.

Get Started

Comments

Leave a Comment


Check out more interview questions

Based on your skills

MS SQL Server

1619694 1720 20 859

Angular

40753 92 0 46

Wordpress

33333 72 1 36