Questions tagged [window.opener]

The opener property returns a reference to the window that created the window.

When opening a window with window.open(), you can use this property from the destination window to return details of the source (parent) window.

NOTE : window.opener.close() will close the source (parent) window.

ISSUE : Not working with IE.

SOLUTION : Use window.ShowModalDialog() & window.dialogArguments()

159 questions
25
votes
4 answers

Using rel="noopener" in window.open()

So I know that I can apply rel="noopener in an a tag when using target="_blank". But I'm trying to pass it as an argument to window.open(), ie: window.open('http://cats.com', '_blank', 'rel=noopener') however it doesn't seem to be working the way…
Bryantee
  • 474
  • 1
  • 6
  • 12
20
votes
5 answers

window.opener alternatives

I am opening a modal popup window. Then I access a parent window textbox and other attributes using window.opener. It is working fine in firefox but not in IE8. It gives error 'window.opener is null'. How can I access parent window attributes in…
dmay
  • 1,305
  • 6
  • 21
  • 31
17
votes
4 answers

Window.open with 'noopener' opens a new window instead of a new tab

I was using window.open('') with '_blank' as second parameter to open my link in new tab For eg. window.open('http://google.com', '_blank') But, recently I added the third parameter 'noopener' so that window.opener becomes null in the new tab and…
Chirag Swadia
  • 1,099
  • 1
  • 9
  • 24
16
votes
2 answers

JavaScript window.opener call parent function

I am trying to call a javascript function defined in a parent from a child window. I have two files like this: Parent: Test