日期:2014-05-16  浏览次数:20411 次

jsp 在超链接上调用onclick,js方法函数,a标签
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<script>
	var test = function(){
		alert("hello");
	}
</script>
<BODY>
<a href="javascript:test()">Test</a>
</BODY>
</HTML>


黑色头发:http://heisetoufa.iteye.com/