谢谢大家的帮忙,不过我想您们可能还是不明白我的意思。 BIHU的方法可以实现不在状态栏里显示URL,但不知哪位高手能解决在点击一个链接后在新的页面里隐藏URL,请一定指教。 我要的是一个通用的事件,而不是为每个链接都去加上一个事件处理函数,就像下面这样: <script language="javascript"> function document.onclick() { if (window.event.srcElement.tagName == "A") { alert("you clicked a link:" + window.event.srcElement.href); // comment the following line out if you want to go to the link window.event.returnValue = false; // do not go to the link } } </script><a href="a.html">a</a><br> <a href="b.html">b</a><br> <a href="c.html">c</a>
function show(){
window.open("test.htm")}
</script>
<A Href="#" onclick="show()">Install this certificate</A>
self.location="test.htm"
window.status=“”
BIHU的方法可以实现不在状态栏里显示URL,但不知哪位高手能解决在点击一个链接后在新的页面里隐藏URL,请一定指教。
我要的是一个通用的事件,而不是为每个链接都去加上一个事件处理函数,就像下面这样:
<script language="javascript">
function document.onclick()
{
if (window.event.srcElement.tagName == "A")
{
alert("you clicked a link:" + window.event.srcElement.href);
// comment the following line out if you want to go to the link
window.event.returnValue = false; // do not go to the link
}
}
</script><a href="a.html">a</a><br>
<a href="b.html">b</a><br>
<a href="c.html">c</a>