www.fgks.org   »   [go: up one dir, main page]

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

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

Syntax

[ sWindow = ] window.opener

Possible Values

sWindowString or Integer that specifies or receives the window reference.

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

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. 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
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content      
open window without toolbars, menubars      ameade ... Clayton Rogers - MSFT   |   Edit   |  

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 >
</body>
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG