window.opener

Close opened pop-up window on form submission and trigger click on the parent window

吃可爱长大的小学妹 提交于 2019-12-10 09:26:35
问题 I have a parent window from where I am opening a pop-up window using window.open() and I am monitoring the return of that pop-up window using the window.opener method. I have two queries here: On my pop-up window, there is a submit button that takes care of the submit functionality of the form and I would like to wait for the submit to complete and close this pop-up window on submission. When the form is submitted and the pop-up window is closed, I am fetching one of the text box values and

Using rel=“noopener” in window.open()

夙愿已清 提交于 2019-12-08 17:42:08
问题 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 that I expected, as the opener object still exists on the window after the user clicks on the link. Is there something I'm missing? Or cannot it not be done the way that I'm intending? I've found some great articles but they don't quite address my

Window.opener null on same domain in IE

帅比萌擦擦* 提交于 2019-12-08 07:09:09
问题 I've researched this extensively (there are many similar questions) but I'm not finding the exact answer I'm looking for. I am creating a single sign-on widget, so the user flow is as follows: User clicks Login to open window (domain1) > Login flow (domain2) > Landing page (domain1) Here is the code I'm using on the landing page: <html> <head> <title>Redirect</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <script type="text/javascript"> if (window.opener &&

Firefox window.opener issue

我是研究僧i 提交于 2019-12-07 13:15:45
问题 "window.opener" works fine in both IE and Firefox as long as 'Open in New Tab' is used from the right-click menu; Error console says "window.opener" is null. Is there any other way the opener can be accessed? Edit: Error console says "window.opener" is null only when "Open in New Tab" is clicked. For all other cases, there is no such error. Hence, what i would like to know is if an alternate other than "window.opener" exists. 回答1: window.opener only works if the window (or tab, if it was

window.opener.location.href works in IE but not Chrome or Safari

旧城冷巷雨未停 提交于 2019-12-07 02:11:37
问题 I have been researching this problem and while there's lots of posts on various forums about similar problems, none of the problems or solutions exactly match mine. I have an application that has been successfully using the function below to redirect back to the parent window once finished with a popup. Recently I have been investigating compatibility with other browsers (to allow the system to be used via iPad) and have found that there is a problem with this function when using Safari or

Close opened pop-up window on form submission and trigger click on the parent window

ぐ巨炮叔叔 提交于 2019-12-05 18:09:07
I have a parent window from where I am opening a pop-up window using window.open() and I am monitoring the return of that pop-up window using the window.opener method. I have two queries here: On my pop-up window, there is a submit button that takes care of the submit functionality of the form and I would like to wait for the submit to complete and close this pop-up window on submission. When the form is submitted and the pop-up window is closed, I am fetching one of the text box values and using that in my parent window to simulate a search automatically as soon as the pop-up window is closed

window.opener.location.href works in IE but not Chrome or Safari

喜你入骨 提交于 2019-12-05 06:21:27
I have been researching this problem and while there's lots of posts on various forums about similar problems, none of the problems or solutions exactly match mine. I have an application that has been successfully using the function below to redirect back to the parent window once finished with a popup. Recently I have been investigating compatibility with other browsers (to allow the system to be used via iPad) and have found that there is a problem with this function when using Safari or Chrome. The parent page is a summary of some databased info, and the user clicks a link to open a window

Refresh the parent window from the child window in javascript

落花浮王杯 提交于 2019-12-04 03:26:50
问题 I have looked for awhile and cannot find an answer that fits my needs. I have a page that pops a window (window.open), logs the user in (creates a cookie, set session) then redirects to another page. While the modal is redirecting, I would like to refresh the parent page, so all the good stuff that I just did will be recognized by the parent. I have tried window.opener and stuff like that. Can someone help me out a little? Thanks 回答1: window.opener in the popup will refer to the window object

Refresh the parent window from the child window in javascript

只愿长相守 提交于 2019-12-01 18:07:57
I have looked for awhile and cannot find an answer that fits my needs. I have a page that pops a window (window.open), logs the user in (creates a cookie, set session) then redirects to another page. While the modal is redirecting, I would like to refresh the parent page, so all the good stuff that I just did will be recognized by the parent. I have tried window.opener and stuff like that. Can someone help me out a little? Thanks window.opener in the popup will refer to the window object of the opening window, so of course you should be able to call window.opener.location.reload(); . Provided

How to disconnect JavaScript popup from opener

拜拜、爱过 提交于 2019-11-30 08:35:33
问题 I'm opening a popup from my main page with code like this: <a href="http://external.domain.tld/" onclick="window.open(this.href, '_blank', 'width=512,height=512,left=200,top=100');return false"> Open popup </a> This works fine, but my problem is that the document which is loaded in the popup window has the permission to change the location of the opener window. This even works when the document in the popup is from a different domain. It has no permission to read the location but it is