简体   繁体   English

如果两个单独的选项卡有两个单独的弹出窗口,那么在关闭弹出窗口时如何刷新各自的选项卡。 如果我在其他活动标签中

[英]In case of two separate pop-ups from two separate tabs, how can I refresh the respective tab while closing a pop-up. if I am in a different active tab

I have passed the tab name as window name for a pop-up. 我已经将选项卡名称作为窗口名称传递给了弹出窗口。 I want to use the window name to identify the tab and refresh it when I am closing its pop-up. 我要使用窗口名称来标识选项卡,并在关闭其弹出窗口时刷新它。

The tricky part is that I am in a different active tab when I am trying to close the pop-up. 棘手的部分是,当我尝试关闭弹出窗口时,我处于另一个活动选项卡中。

Try to open different window alerts for each event (tab clicked): 尝试为每个事件打开不同的窗口警报(单击选项卡):

var win1 = window.open(url, _blank); var win1 = window.open(url,_blank); win1.alert('something here'); win1.alert('这里有东西');

var win2 = window.open(url, _blank); var win2 = window.open(url,_blank); win2.alert('something here'); win2.alert('这里有东西');

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 选中(始终在新选项卡中打开弹出窗口)时,如何强制弹出窗口在新窗口中打开? - How to force a pop-up to open in a new window while (Always open pop-ups in new tab) is checked? JSF弹出窗口; 我可以设定他们的位置吗? - JSF Pop-ups; can I set their location? 如何制作弹出式窗口,以创建其他弹出式窗口? - How can I make a pop up that creates other pop ups? target =“ _ blank”弹出一个窗口,而不是打开一个新选项卡 - target=“_blank” pop-ups a window instead of open a new tab 随后使用 JQuery 在按钮的单击事件上关闭和打开两个 model 弹出窗口 - Closing and opening two model pop-ups subsequently on a Button's Click event using JQuery 如何将Vanilla JS添加到我的react应用程序中以创建Image Modal弹出窗口? - How can I add Vanilla JS to my react app to create Image Modal pop-ups? 如何允许 Firefox 5 中的本地文件(file:/// 地址)弹出窗口? - How do I allow pop-ups from local files (file:/// addresses) in Firefox 5? 如何检查弹出窗口是否允许在客户端的浏览器中显示? - How can I check whether or not pop-ups are allowed to show in client's browser? 模态弹出窗口在屏幕一侧闪烁。 我怎样才能解决这个问题? - Modal pop-ups flashing to the side of the screen. How can I fix this? 浏览器如何无法阻止弹出窗口? - How can a browser be unable to block pop-ups?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM