Displays an alert box with a message and an OK button.
Displays a prompt box with a message, an input field, and OK and Cancel buttons.
Displays a confirmation box with a message, OK and Cancel buttons, and returns a boolean value indicating whether the user clicked OK or Cancel.
Provides information about the current URL and allows scripts to change the current URL.
Represents the HTML document displayed in the window and provides methods for manipulating it.
innerWidth and innerHeight
Provide the width and height of the content area of the browser window, excluding toolbars and scrollbars.
Scrolls the document to the specified position.
Executes the function after the specified delay.
Cancels the setTimeout() method called earlier.
Executes the function repeatedly at the specified interval.
Cancels a setInterval() method that was set earlier.
The open() method is used to open a new browser window or tab programmatically.
The resizeBy() method is used to resize the current browser window by a specified amount in pixels.
The resizeTo() method is used to resize the current browser window to a specified width and height.
The scroll() method is used to scroll the content of the current window to a specified position.