Window properties in JS

MethodDescription
alert()specifies a method that displays an alert box with a message an OK button.
blur()specifies a method that removes the focus from the current window.
clearInterval()specifies a method that clears the timer, which is set by using setInterval() method.
close()specifies a method that closes the current window.
confirm()specifies a method that displays a dialogue box with a message and two buttons OK and Cancel
focus()specifies a method that sets the focus on current window.
open()specifies a method that opens a new browser window
moveTo()specifies a method that moves a window to a specified position
moveBy()specifies a Method that moves a window relative to its current position.
prompt()specifies a method that prompts for input.
print()specifies a method that sends a print command to print the content of the current window.
setTimeout()specifies a method that evaluates an expression after a specified number of milliseconds.
setInterval()specifies a method that evaluates an expression at specified time intervals (in milliseconds)
resizeBy()specifies the amount by which the window will be resized
resizeTo()used for dynamically resizing the window
scroll()scrolls the window to a particular place in document
scrollBy()scrolls the window by the given value
stop()this method stops window loading

Leave a comment

Your email address will not be published. Required fields are marked *