开发者

How to hide all URL in Firefox status bar when mouseover to any links?

开发者 https://www.devze.com 2022-12-22 05:02 出处:网络
Anyone can give me 开发者_如何学JAVAthe answer? TQ.Convert all anchors from href to onClick javascript.

Anyone can give me 开发者_如何学JAVAthe answer? TQ.


Convert all anchors from href to onClick javascript.

Before implementation:

<a href="mylink.html">MyLink</a>

After implementation:

<a href="#" onClick="javascript:document.location="mylink.html">MyLink</a>


this looks pretty suspect, but:

make the href attribute of your links do nothing...

<a href="#">Link Text</a>

and use onclick handlers to change pages.

<a href="#" onclick="javascript: window.location='http://newurl.com'>Link Text</a>


use this code

<a href="javascript:void(0);" onClick="href='mylink.html'">...your text link...</a>

0

精彩评论

暂无评论...
验证码 换一张
取 消