jsp page use hyperlinks tag attributes and how to perform simultaneously trigger

Reference Address: http://www.newsmth.net/pc/pccon.php?id=2206&nid=398188

 

代码如下;strHTML +="<a class="close" href="#" onclick="$o(/"" + this.id + "/").getTab(/"" + tabpage.id + "/").close(); return false; ">";

 

Or as follows:

<a href=" javascript:void(0)" onclick="xxx();">xx</a>

Onclick trigger can be realized, but without triggering href address.

Reproduced in: https: //www.cnblogs.com/alterhu/archive/2012/05/19/2509291.html

Guess you like

Origin blog.csdn.net/weixin_33766805/article/details/94029613