HTML DOM opener Property
Complete Window Object Reference
Definition and Usage
The opener property returns a reference to the window that created the
window.
Syntax
Example
The following example writes some text to the opener window (parent window):
<html>
<body>
<script type="text/javascript">
myWindow=window.open('','MyName','width=200,height=100')
myWindow.document.write("This is 'myWindow'")
myWindow.focus()
myWindow.opener.document.write("This is the parent window")
</script>
</body>
</html>
|
Try-It-Yourself Demos
Write text to
the opener window
Complete Window Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|