a标签链接js要使用javascript:,含有值的并且要写入函数,否则会直接链接到显示一个值的空白页。
如下面:
<a href="javascript:hidekf();">关闭</a> <script language="JavaScript" type="text/javascript"> function hidekf(){ document.getElementById('nailkf').style.display='none'; } </script>
a标签链接js要使用javascript:,含有值的并且要写入函数,否则会直接链接到显示一个值的空白页。
如下面:
<a href="javascript:hidekf();">关闭</a> <script language="JavaScript" type="text/javascript"> function hidekf(){ document.getElementById('nailkf').style.display='none'; } </script>
You can follow any responses to this entry through the RSS 2.0 Both comments and pings are currently closed.