Skip to main content

window instance method

alert()

to display alert box with optional message & OK button

blur()

to remove focus from cur window

clearInterval()

(id: number): void to clear a timer with setInterval()

clearTimeout()

(identifier: string): void to clear timer set with setTimeout()

close()

to close current window

confirm()

(message?: string): void to display a dialogue box with optional message, OK button & Cancel button

focus()

to set focus to current window

moveBy()

to move window by amount rel to cur position

moveTo()

to move window to specific position

open()

to open new Browser window

print()

to print contents of current window

prompt()

to display dialogue box to prompt user for input

resizeBy()

to resize window by (#_pixels)

resizeTo()

to resize window to specific width & height

scrollBy()

to scroll Document by number of pixels

scrollTo()

to scroll Document to coordinates

setInterval()

to call function or evaluate Expression, repeatedly at specific intervals

setTimeout()

to execute function (or Expression), once after timer expires

stop()

to stop load current window

References