Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
HTML and CSS
Properties
 opener Property

  Switch on low bandwidth view
opener Property

Sets or retrieves a reference to the window that created the current window.

Syntax

[ sWindow = ] object.opener

Possible Values

sWindowString or Integer that specifies or receives the window reference.

The property is read/write. The property has no default value.

DHTML expressions can be used in place of the preceding value(s). As of Internet Explorer 8, expressions are not supported in IE8 mode. For more information, see About Dynamic Properties.

Remarks

The opener property is available only for frame and iframe pages.

Standards Information

There is no public standard that applies to this property.

Applies To

window, Window Constructor
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
open window without toolbars, menubars      ameade ... retool2   |   Edit   |   Show History

You can use .opener to open a window without toolbars, menubars, etc. To do this:

<script language="javascript" type="text/javascript"> 
function open_it(){
//this opens a new window without toolbars, menubars, etc.
lovechild = window.open("file_you_want_to_open.html", "lovechild","height=679, width=1200,resizable=0,menubar=0,toolbar=0,location=0,directories=0,scrollbars=0,status=0")
//this sets the opener of the first opened window to the new window you just opened
this.opener=lovechild
//this pauses, then closes the window you first opened
setTimeout("self.close();",5000)
}
</script>
</head>
<body onload="open_it()">
</body>
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker