html链接弹出 [英] html link popup

查看:57
本文介绍了html链接弹出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友

这是一个小代码:
< div id =''footer2''>由< a href =''https://www.whatever.com''>< strong>我的名字</strong></a>开发</div>


请引导我做一件事,只要有人单击我的名字,链接就会在新页面中打开.并且当前在同一页面中打开.

plz指南
感谢

Hi friends

this is a small code:
<div id=''footer2''>Developed by <a href=''https://www.whatever.com''><strong>my name</strong></a> </div>


plz guide me in one thing that whenever someone clicks over my name the link shud open in new page. and currently its opened in the same page.

plz guide
thanks

推荐答案

在锚标记< a>
中使用名为"target"的属性
target ="_ blank"

_blank表示每次单击链接都会打开一个新窗口.
如果您只想打开一个窗口,请使用任意但明确的
名称.

干杯

曼弗雷德(Manfred)
Use the attribute named "target" in the anchor tag <a>

target="_blank"

_blank means a new window is opened everytime the link is clicked.
If you want just one window that opens use an arbitrary but unambiguous
name.

Cheers

Manfred


这篇关于html链接弹出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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