If you find this helpful, please click the Google   to the left, if it is white, to make it turn blue or red. Thank you! (It also helps find this page again more easily.)
 
 
Window Interface 
The Window interface  provides properties and methods for accessing the windows and documents in the object model. A window  object is an instance that implements the Window interface and represents the area where a Document  is loaded into the browser. In a tabbed browser, each tab has its own window object; one window does not  have access to the window object in any other browser tab. There is also one separate window object for each browser window and some methods, such as resizeTo  and resizeBy , are delegated to one of these because they apply to a whole application window rather than a single browser tab.
Superinterfaces: 
AbstractView Implements: 
EventTarget Use: 
window  object 
DOM Properties Supported get only ApplicationCache 
window.applicationCache 
 
 
get only boolean 
window.closed 
 
 
get or set DOMString 
window.defaultStatusvalue  
 
 
get only DOMObject 
window.dialogArguments 
 
 
get only Document 
window.document 
 
 
get only Element 
window.frameElement 
 
 
get only WindowProxy 
window.frames 
 
 
get only History 
window.history 
 
 
get only int 
window.innerHeight 
 
 
get only int 
window.innerWidth 
 
 
get only unsigned long 
window.length 
 
 
get only Storage 
window.localStorage 
 
 
get only Location 
window.location 
 
 
get only BarProp 
window.locationbar 
 
 
get or set DOMString 
window.namevalue  
 
 
get only Navigator 
window.navigator 
 
 
get only WindowProxy 
window.opener 
 
 
get only Opera 
window.opera 
   
   addEventListener(DOMString  type, any function, boolean capturePhase) buildNumber() buildNumber("inconspicuous") clearErrorMessages() collect() initiate garbage collection 
   defineMagicFunction(DOMString  functionName, function function) defines a function for a method 
   defineMagicFunction(DOMString  variableName, function getterFunction, function setterFunction) defines functions for getting and setting a property 
   errorIndex() errorMessage(int index) getOverrideHistoryNavigationMode() getPreference(DOMString  section, DOMString  preferenceName) getPreferenceDefault(DOMString  section, DOMString  preferenceName) isRegistered() openInSourceViewer(DOMString  url) popXSLTransform() postError(DOMString  message, ...) pushXSLTransform(Node xslStyleSheetNode) setOverrideHistoryNavigationMode(DOMString  mode) setPreference(DOMString  section, DOMString  preferenceName, DOMString  value) SRPNumber() version()  
 
 
 
get only int 
window.outerHeight 
 
 
get only int 
window.outerWidth 
 
 
get only int 
window.pageXOffset 
 
 
get only int 
window.pageYOffset 
 
 
get only WindowProxy 
window.parent 
 
 
get only BarProp 
window.personalbar 
 
 
get or set any 
window.returnValuevalue  
A property of windows created with the showModalDialog method  that can be used to set or get the value returned by the modal dialog window. 
 
 
get only BarProp 
window.scrollbars 
 
 
get only WindowProxy 
window.self 
 
 
get only Storage 
window.sessionStorage 
 
 
get only DOMString 
window.status 
 
 
get only BarProp 
window.statusbar 
 
 
get only BarProp 
window.toolbar 
 
 
get only WindowProxy 
window.top 
 
 
get only WindowProxy 
window.window 
 
 
DOM Interface Methods Supported void 
window.addEventListener(DOMString  type , EventListener  listener , boolean useCapture ) 
 
 
void 
window.alert(DOMString  message ) 
 
 
void 
window.blur() 
 
 
void 
window.clearInterval(int intervalID ) 
 
 
void 
window.clearTimeout(int timeoutID ) 
 
 
void 
window.close() 
 
 
boolean 
window.confirm(DOMString  message ) 
 
 
boolean 
window.dispatchEvent(Event  event ) 
 
 
void 
window.focus() 
 
 
CSSStyleDeclaration 
window.getComputedStyle(Element  element ) 
 
 
Selection 
window.getSelection() 
 
 
void 
window.moveBy(int deltaX , int deltaY ) 
 
 
void 
window.moveTo(int x , int y ) 
 
 
WindowProxy 
window.open(DOMString  url , DOMString  target , DOMString  features , DOMString  replace ) 
 
 
void 
window.postMessage(DOMString  message , URI targetOrigin ) 
 
 
void 
window.print() 
 
 
DOMString 
window.prompt(DOMString  promptText , DOMString  defaultValue ) 
 
 
void 
window.removeEventListener(DOMString  type , EventListener  listener , boolean useCapture ) 
 
 
void 
window.resizeBy(int deltaX , int deltaY ) 
 
 
void 
window.resizeTo(int width , int height ) 
 
 
void 
window.scroll(int x , int y ) 
 
 
void 
window.scrollBy(int deltaX , int deltaY ) 
 
 
void 
window.scrollTo(int x , int y ) 
 
 
int intervalID 
window.setInterval(DOMString  code , int delayInMilliseconds ) 
 
 
int timeoutID 
window.setTimeout(DOMString  code , int delayInMilliseconds ) 
 
 
any 
window.showModalDialog(DOMString  url , any argument ) 
 
 
void 
window.stop() 
 
 
DOM Events Event Type Property Supported abort Function onabort 
afterprint Function onafterprint 
beforeprint Function onbeforeprint 
beforeunload Function onbeforeunload 
blur Function onblur 
canplay Function oncanplay 
canplaythrough Function oncanplaythrough 
change Function onchange 
click Function onclick 
cuechange Function oncuechange 
dblclick Function ondblclick 
drag Function ondrag 
dragend Function ondragend 
dragenter Function ondragenter 
dragleave Function ondragleave 
dragover Function ondragover 
dragstart Function ondragstart 
drop Function ondrop 
durationchange Function ondurationchange 
emptied Function onemptied 
ended Function onended 
error Function onerror 
focus Function onfocus 
formchange Function onformchange 
forminput Function onforminput 
hashchange Function onhashchange 
input Function oninput 
invalid Function oninvalid 
keydown Function onkeydown 
keypress Function onkeypress 
keyup Function onkeyup 
load Function onload 
loadeddata Function onloadeddata 
loadedmetadata Function onloadedmetadata 
loadstart Function onloadstart 
message Function onmessage 
mousedown Function onmousedown 
mousemove Function onmousemove 
mouseout Function onmouseout 
mouseover Function onmouseover 
mouseup Function onmouseup 
mousewheel Function onmousewheel 
offline Function onoffline 
online Function ononline 
pause Function onpause 
play Function onplay 
playing Function onplaying 
pagehide Function onpagehide 
pageshow Function onpageshow 
popstate Function onpopstate 
progress Function onprogress 
ratechange Function onratechange 
readystatechange Function onreadystatechange 
redo Function onredo 
reset Function onreset 
resize Function onresize 
scroll Function onscroll 
seeked Function onseeked 
seeking Function onseeking 
select Function onselect 
show Function onshow 
stalled Function onstalled 
storage Function onstorage 
submit Function onsubmit 
suspend Function onsuspend 
timeupdate Function ontimeupdate 
undo Function onundo 
unload Function onunload 
volumechange Function onvolumechange 
waiting Function onwaiting 
Window onload Example 
<script type="text/javascript">
window.addEventListener("load", function init() {
   alert('"Hello, World!" from Window load event');
}, false);
</script> 
Event:  
back to top 
 
Valid HTML 5 
 
© Copyright 2014 Accilent® Corp. Alteration of content, including anything altering the user experience such as adding hypertext links or pop-up advertising, or interference with the hypertext links or other functions of this site is expressly prohibited.