单击超链接时如何打开新窗口 [英] how to open new window when clicked on hyperlink
本文介绍了单击超链接时如何打开新窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的项目中有一个超链接,我将大学的网站动态地绑定到它.
当我单击它时,链接应该在新窗口中打开.而不是我在同一窗口中获取链接.
请帮助我.
Hi,
i have a hyperlink in my project, i bind the colleges website to it dynamically.
when i clicked on it, link should be open in new window..instead iam getting the link in same window.
help me please.
推荐答案
如此简单地使用目标属性
So Simple use target Properties
<a href="http://www.google.com/" target="_blank">Google</a>
这篇关于单击超链接时如何打开新窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文