简体   繁体   English

单击新窗口上的链接,打开一个新页面

[英]Open a new page on click of a link on new window

I have a page in which i have provided a link clicking on which should redirect to a new page on the new window. 我有一个页面,其中提供了一个链接,单击该链接应将其重定向到新窗口中的新页面。

My code is 我的代码是

<a href="javascript:void(0);" class="webMnu" onclick="window.open('http://abc.com','plain');">Enroll</a>

The problem is that it is working fine in firefox(opens in a new tab) but in internet explorer its opening in a popup (not in a new tab). 问题是它在firefox中工作正常(在新选项卡中打开),但是在Internet Explorer中,它在弹出窗口中打开(不在新选项卡中)。

How can i open this new page in new tab? 如何在新标签页中打开此新页面?

Please help me on this. 请帮我。

Thanks 谢谢

Pankaj 潘卡伊

you want 你要

<a href="http://abc.com" target="_blank">Enroll</a>

window.open is for popup windows, if you just want a new browser window/tab, target=_blank is your friend. window.open用于弹出窗口,如果您只想要一个新的浏览器窗口/选项卡,target = _blank是您的朋友。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM