超链接target为_blank时的问题
1. HTML元素<a href="#" target="_blank">链接</a>
href为链接的地址,#代表当前页面。如:
<a href="http://www.baidu.com" target="_blank">点我</a>
<a href="javascript:funcName();" target="_blank">点我</a><a href="javascript:void(0);" target="_blank">点我</a><!-- 空函数 --><a href="javascript:;" target="_blank">点我</a><!-- 没有函数 -->
<a href="javascript:toGo()" target="_blank">Go</a><script type="text/javascript">function toGo() {alert('toGo() is invoked');}</script>
<a onclick="toGo();" target="_blank">Go</a>
<a href="javascript:;" onclick="toGo();" target="_blank">Go</a>
<a href="http://www.baidu.com" target="_blank">Go</a><a href="javascript:toGo()" target="_self">Go</a><form id="form1" method="get"><input type="hidden" name="wd" value="" /></form><script type="text/javascript" src="jquery-1.7.1.js"></script><script type="text/javascript">function toGo() {$('#form1').attr('action', 'http://www.baidu.com/s');$("#form1 input:hidden[name='wd']").val('terrific');$('#form1').attr('target', '_blank');$('#form1').submit();}</script>