window.opener

How can I send an event from child window to its parent window

六眼飞鱼酱① 提交于 2019-12-31 22:30:11
问题 My main goal is: Going to my application, open a link there in a new tab, make something in the new tab and send an event to the parent-main tab to refresh. I have learned 2 techniques that doesn't do exactly what I need: postMessage - works as far as I know only on iframe and not on tabs window.opener - works only with window.open(url) that opens only new window and not new tab. How can I pass an event from the child to the parent using tabs? I'd be happy for a specific example for

Problems with IE and appending to the window.opener

只谈情不闲聊 提交于 2019-12-24 15:11:11
问题 I have the following script that works well in Firefox and Chrome (not sure about other browsers), but it doesn't work at all in IE. It basically opens a popup which appends a div to highlight an item in the window opener. I want it to work across multiple pages on the same site, so I didn't want to add a function to create the div in the main window (window.opener). Sorry I couldn't post a working demo - window.opener doesn't work in a bin. <button>Open popup</button> <script type="text

window.opener becomes null in Internet Explorer after security zone change

爷,独闯天下 提交于 2019-12-24 04:06:19
问题 My application runs in Local Intranet zone which launches a popup. This popup opens another page in my application (Local Intranet zone) which redirects to an authentication page (Internet zone) which after successful authentication sends back to my application page ( Local Intranet zone). However, at the final page, window.opener becomes null and I can't call methods on parent page. This doesn't happen when all pages load from the same zone. Is there a way around this behavior so that I can

window.opener not working in chrome & IE

早过忘川 提交于 2019-12-23 05:22:26
问题 I have one child popup. From this child popup I am sending some values from child popup to textbox of parent page. javascript is working fine in firefox but not working in chrome & IE Bellow is the javascript function submitValues(value1,value2) { window.close(); window.opener.document.getElementById("value1Id").value = value1; window.opener.document.getElementById("value2Id").value = value2; } I am not able to figure out that what is the problem. 回答1: You can pass arguments to

window.opener with a custom function does not work in Safari

落爺英雄遲暮 提交于 2019-12-14 03:55:17
问题 I am having an issue with Safari, specifically, not finding the window.opener function from the parent window. The function I'm calling works fine in Chrome and Firefox. Does anyone have any tips? Window 1 (Parent) Opens window 2 with the following: window.open(requestUrl, "_blank", "width=440, height=500, scrollbars"); Window 2 (Popup) After the request url page returns back, the following gets called: window.parent.opener.callBackIntegrationCompleted("testing"); window.close(); I get the

passing a variable with window.opener javascript

故事扮演 提交于 2019-12-13 04:51:44
问题 In the first page I have window.tmpstr = 'aaaaaa'; window.open ('second.php','_self',false); in second.php alert(window.opener.tmpstr) This alerts 'undefined'. when I change '_self' to '_blank' it works. How can I pass the variable when I want the new window to open in the same window. 回答1: You can't, not like that. By calling window.open using _self , you simply redirect the page to the second.php url. Options you can use are : Adding it as a parameter using the hash tag (second.php#tmpstr

window.opener does not work in Excel for Windows

旧巷老猫 提交于 2019-12-12 16:41:01
问题 I have built an Excel add-in, it opens a popup by window.open , then the add-in communicates with the popup site. I just realised that it does NOT work in Excel for Windows, the reason is that the popup can NOT get the host by $window.opener . To illustrate this and avoid cross-domain, I have made a xml, which refers to the add-in and the test page. It works well in Excel Online in Chrome and in IE. However, while running it in Excel for Windows, $window.opener returns undefined . Could

Javascript window.opener not working in IE 10

一曲冷凌霜 提交于 2019-12-11 13:18:53
问题 I've developed a plugin that open a pop up. Inside this pop up i have a link that clos my pop up and redirect the url of the parent, like this : window.parent.opener.location = "http://google.fr"; or window.opener.location = "http://google.fr"; Both are working but in some versions of IE, they don't. My parent page isn't on the same domain of my children page, but even when it is the case, it still doesn't work. IE puts a message at the bottom asking if I want to let the website do this. I'd