javascript - Open a link from a popup window in a new tab in the parent window - Stack Overflow

Is it possible to have a link in a popup window open in a new tab in the parent window?Here's the

Is it possible to have a link in a popup window open in a new tab in the parent window?

Here's the flow: I have a page with a link on it (call it Page A). Clicking the link on Page A opens a popup window (Page B). Clicking a link on Page B opens another page (Page C) in the parent window, but it replaces Page A.

What I want to do is have the link on Page B (the popup) open Page C in a new tab in the parent window, so that Page A remains open.

Is it possible to have a link in a popup window open in a new tab in the parent window?

Here's the flow: I have a page with a link on it (call it Page A). Clicking the link on Page A opens a popup window (Page B). Clicking a link on Page B opens another page (Page C) in the parent window, but it replaces Page A.

What I want to do is have the link on Page B (the popup) open Page C in a new tab in the parent window, so that Page A remains open.

Share Improve this question asked Dec 1, 2011 at 15:25 daGUYdaGUY 28.8k29 gold badges77 silver badges123 bronze badges 2
  • besides its technial issue, is it really a user friendly state? – Kemal Can Kara Commented Dec 1, 2011 at 15:27
  • You don't really have access to the browser tabs and windows. With the targets you only have access to the __parent and __self. So, not really helping there. Every browsers handles tabs and windows differently and don't forget that some browsers don't even have tabs. – jValdron Commented Dec 1, 2011 at 15:28
Add a ment  | 

1 Answer 1

Reset to default 4

try

 parent.window.open("http://www.javascript-coder.","mywindow");

otherwise please post what you already have and we'll pick it up from there....

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744708604a4589203.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信