用于在新浏览器窗口中弹出链接的代码 [英] code to popup link in new browser window

查看:54
本文介绍了用于在新浏览器窗口中弹出链接的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果点击

链接,如何在页面上打开链接以打开新的浏览器窗口?我有时会注意到javascript代码,当我尝试

右键单击一个链接并在另一个窗口中打开它时。


有没有办法使用直接HTML导致链接打开一个新的浏览器

窗口?


谢谢。

解决方案

在文章< Xn ******************************* @ 216.196.97.131> ,zn

(zn@zn122.edu.invalid)删掉了+5捆的单词...

如何在页面上生成链接点击
链接时打开一个新的浏览器窗口?我有时会注意到javascript代码,当我尝试右键单击一个链接并在另一个窗口中打开它时。

有没有办法使用直接HTML来打开链接一个新的浏览器
窗口?




target = _blank


-

Starshine Moonbeam

mhm31x9 Smeeter#29 WSD#30

sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM




"锌"在comp.infosystems中写道。 www.authoring.html:

当点击
链接时,如何在页面上打开链接以打开新的浏览器窗口?




这取决于您的浏览器,但通常是右键单击然后

选择在新窗口中打开。


我敢肯定你不要意思是问如何编写一个网页,在新窗口中打开它的链接,因为这是邪恶和反用户。 (想想

回到你打开未开启的窗户的烦恼,

并且不要对访问者这样做。)


-

Stan Brown,Oak Road Systems,美国纽约汤普金斯县
http://OakRoadSystems.com/

HTML 4.01规范: http://www.w3.org/TR/html401/

验证者: http://validator.w3.org/

CSS 2.1规范: http://www.w3.org/TR/CSS21/

验证人: http://jigsaw.w3.org/css-validator /

为什么我们不能帮助你:
http://diveintomark.org/archives/200..._wont_help_you


Stan Brown< th *** *********@fastmail.fm>写在

新闻:MP ************************ @ news.odyssey.net:

" zn"在comp.infosystems中写道。 www.authoring.html:

当点击链接时,如何在页面上打开链接以打开新的浏览器窗口?



这取决于您的浏览器,但通常是'右键单击然后选择在新窗口中打开。

我相信你不是故意要问如何写一个会打开的网页它在新窗口中的链接,因为那是邪恶和反用户。 (想想
回到你开窗的窗户是多么恼火,
并且不要对你的访客这样做。)




一旦我读完了这个命令,我意识到与

可怕弹出窗口的连接,以及一些反流行程序会禁用

这个功能,让我感觉到了。


我想做的是让读者在一个页面上,但给他们

选项来看看快速关联的参考页面,而不会中断它们在哪里(我想像一个基本的弹出窗口)。但听起来好像它会导致更多的恶化而不是因为好事。


How can I cause a link on a page to open up a new browser window when the
link is clicked on? I''ve noticed javascript code sometimes when I try to
right-click a link and open it in another window.

Is there a way to use straight HTML to cause a link to open a new browser
window?

Thanks.

解决方案

In article <Xn*******************************@216.196.97.131> , zn
(zn@zn122.edu.invalid) dropped a +5 bundle of words...

How can I cause a link on a page to open up a new browser window when the
link is clicked on? I''ve noticed javascript code sometimes when I try to
right-click a link and open it in another window.

Is there a way to use straight HTML to cause a link to open a new browser
window?



target=_blank

--
Starshine Moonbeam
mhm31x9 Smeeter#29 WSD#30
sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM




"zn" wrote in comp.infosystems.www.authoring.html:

How can I cause a link on a page to open up a new browser window when the
link is clicked on?



It depends on your browser, but usually it''s right-click and then
select "Open in New Window".

I''m sure you don''t mean to ask how to write a Web page that will open
its link in a new window, because that is evil and anti-user. (Think
back to how often you''ve been annoyed by windows opening up unasked,
and don''t do that to your visitors.)

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won''t Help You:
http://diveintomark.org/archives/200..._wont_help_you


Stan Brown <th************@fastmail.fm> wrote in
news:MP************************@news.odyssey.net:

"zn" wrote in comp.infosystems.www.authoring.html:

How can I cause a link on a page to open up a new browser window when
the link is clicked on?



It depends on your browser, but usually it''s right-click and then
select "Open in New Window".

I''m sure you don''t mean to ask how to write a Web page that will open
its link in a new window, because that is evil and anti-user. (Think
back to how often you''ve been annoyed by windows opening up unasked,
and don''t do that to your visitors.)



Once I read up about the command, I realized the connection with the
dreaded pop-up windows, and also that some anti-pop programs would disable
the feature, so I came to my senses.

What I wanted to do was keep the reader on one page but give them the
option to look at an associated reference page quickly without disrupting
where they were (I guess like a basic popup window). But is sounds like
it''ll just cause more aggravation than cause good.


这篇关于用于在新浏览器窗口中弹出链接的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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