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>
精彩评论