强制导航器按URL打开新标签页的链接。

时间:2022-09-22 18:13:07

i have a request if possible, i have an interface which containts a table :

我有一个请求,如果可能的话,我有一个包含表的接口:

name of application   url 
XXXXXX                www.xxx.com

Problem is when I click in the url I lose my information on my current page. my question is there is a code language by Internet explorer FF chrome... provide this action open in tab this url to put in the url like the method version and the other like this about:version ==> open in new tab : this url to put in the url navigator and we get a new tab thank you for help . i try open in a new tab by tools provided by IE , but if possible provide a solution like a code entered in url to open a new tab

问题是当我点击url时,我在当前页面上丢失了信息。我的问题是有一种代码语言是由Internet explorer FF chrome开发的……在tab中打开这个动作,将url放到url中,比如方法版本,另一个像这样:version =>在new tab中打开:这个url放入url导航器,我们得到一个新的标签,谢谢你的帮助。我尝试用IE提供的工具打开一个新选项卡,但是如果可能的话,提供一个解决方案,比如在url中输入代码来打开一个新选项卡

4 个解决方案

#1


6  

If I get you, you want your link to open the page in another tab.

如果我找到你,你想要你的链接打开另一个标签页。

You may use the target attribute of the link like this :

您可以使用链接的目标属性如下:

<a href="somepage.html" target=newtab>text</a>

If you want something you can type in the URL field of the browser, that is a bookmarklet, you may use this :

如果您想要在浏览器的URL字段中输入一个书签,您可以使用以下方法:

javascript: window.open('http://www.dystroy.org');

In most browsers, ctrl-click a link do the same thing.

在大多数浏览器中,按下ctrl-click一个链接会做同样的事情。

EDIT :

编辑:

If what you can modify is only the href attribute of the link, you can make this href be like this :

如果你可以修改的只是链接的href属性,你可以让这个href是这样的:

 <a href="javascript:window.open('http://www.dystroy.org');" target=_blank>text</a>

#2


1  

If its a hyperlink just add a "target" to the hyperlink with its value as "_blank". Working example:

如果它是一个超链接,只需向超链接添加一个“目标”,其值为“_blank”。工作的例子:

<a id="termsLink" href="www.someLink.com" target=_blank>
                Terms and Conditions</a>

#3


1  

The java script solution works great in case of shortcodes which offer you an href (or url) option but no target parameter. Here is an example with a popular callout shortcode:

如果短代码提供了一个href(或url)选项,但没有目标参数,java脚本解决方案可以很好地工作。下面是一个流行的callout短代码示例:

[callout title='Your big Title' text='your small text...' button_text='CLICK ME' button link="**javascript:window.open**('http://www.dystroy.org');"]

Without the javascript, the linked page would open onto the current one.

没有javascript,链接页面将打开到当前页面。

#4


0  

You don't need any code to open a link in a new tab or window. HTML already has that functionality built in.

在新选项卡或窗口中打开链接不需要任何代码。HTML已经内置了这种功能。

Use an tag to show your url and use the target attribute to tell it to open in a new window.

使用标记显示您的url,并使用目标属性告诉它在新窗口中打开。

Example:

例子:

<a href="http://www.xxx.com" target="_blank">www.xxx.com</a>

Learn more about a tag and target attribute here

在这里了解更多关于标记和目标属性的信息

#1


6  

If I get you, you want your link to open the page in another tab.

如果我找到你,你想要你的链接打开另一个标签页。

You may use the target attribute of the link like this :

您可以使用链接的目标属性如下:

<a href="somepage.html" target=newtab>text</a>

If you want something you can type in the URL field of the browser, that is a bookmarklet, you may use this :

如果您想要在浏览器的URL字段中输入一个书签,您可以使用以下方法:

javascript: window.open('http://www.dystroy.org');

In most browsers, ctrl-click a link do the same thing.

在大多数浏览器中,按下ctrl-click一个链接会做同样的事情。

EDIT :

编辑:

If what you can modify is only the href attribute of the link, you can make this href be like this :

如果你可以修改的只是链接的href属性,你可以让这个href是这样的:

 <a href="javascript:window.open('http://www.dystroy.org');" target=_blank>text</a>

#2


1  

If its a hyperlink just add a "target" to the hyperlink with its value as "_blank". Working example:

如果它是一个超链接,只需向超链接添加一个“目标”,其值为“_blank”。工作的例子:

<a id="termsLink" href="www.someLink.com" target=_blank>
                Terms and Conditions</a>

#3


1  

The java script solution works great in case of shortcodes which offer you an href (or url) option but no target parameter. Here is an example with a popular callout shortcode:

如果短代码提供了一个href(或url)选项,但没有目标参数,java脚本解决方案可以很好地工作。下面是一个流行的callout短代码示例:

[callout title='Your big Title' text='your small text...' button_text='CLICK ME' button link="**javascript:window.open**('http://www.dystroy.org');"]

Without the javascript, the linked page would open onto the current one.

没有javascript,链接页面将打开到当前页面。

#4


0  

You don't need any code to open a link in a new tab or window. HTML already has that functionality built in.

在新选项卡或窗口中打开链接不需要任何代码。HTML已经内置了这种功能。

Use an tag to show your url and use the target attribute to tell it to open in a new window.

使用标记显示您的url,并使用目标属性告诉它在新窗口中打开。

Example:

例子:

<a href="http://www.xxx.com" target="_blank">www.xxx.com</a>

Learn more about a tag and target attribute here

在这里了解更多关于标记和目标属性的信息