点击新窗口上的链接打开新页面 [英] Open a new page on click of a link on new window

查看:103
本文介绍了点击新窗口上的链接打开新页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个页面,其中我提供了一个链接点击,该链接应该重定向到新窗口上的新页面。

I have a page in which i have provided a link clicking on which should redirect to a new page on the new window.

我的代码是

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

问题是它在firefox中工作正常(在新标签中打开)但在Internet Explorer中它在弹出窗口中打开(不在新标签中)。

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).

如何在新标签页中打开此新页面?

How can i open this new page in new tab?

请帮助我。

谢谢

Pankaj

推荐答案

你想要

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

window.open用于弹出窗口,如果你只想要一个新的浏览器窗口/标签,target = _blank是你的朋友。

window.open is for popup windows, if you just want a new browser window/tab, target=_blank is your friend.

这篇关于点击新窗口上的链接打开新页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆