Welcome to Delicate template
Header
Just another WordPress site
Header

html的a标签链接js

12月 21st, 2011 | Posted by 无 名 in html | js

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.