Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

How to access parent window in javascript

more options

I have created popup and i would like to hide parent popup window from child window. I can use window.parent in IE and its working fine but i could able to access this in firefox.

I have created popup and i would like to hide parent popup window from child window. I can use window.parent in IE and its working fine but i could able to access this in firefox.

모든 댓글 (5)

more options

Window C launches from window P using window.open? I think you want window.opener:

more options

Hello,

Thank you for your reply.

But i am open a new child window as a popup window.

Here is my code so i could get window.opener its always null.

popupProgress.SetContentUrl("ShowProgress.aspx"); popupProgress.Show();

So i just need to hide my popup from this page ShowProgress.aspx where i opened this popup from Parent.aspx.

Can you please give me some idea.

more options

Hi Ruchita, are SetContentUrl and Show() defined in a JavaScript library? You may want to check the library documentation on how to access the opener from the child window.

more options

Sorry but i could get your point. Can you explain me in more details.

more options

Hi Ruchita, your code seems to use objects and functions that are not built-in JavaScript objects and functions. That is the reason I think they must be defined in a library (external script) -- the one that defines the popupProgress object. Typically you would incorporate a library into your page using

<script src="somelibrary.js" type="text/javascript"></script>

So I suggest making sure the library is up-to-date and if that doesn't help, check on whether there is any support for it from the developer/vendor.