html调用js函数

html中调用js函数很简单,但是千万别用特殊符号或函数。如下“ubmit”如果改成“submit”,那怎样都执行不了

<html>
<script type="text/javascript" language="javascript">
function ubmit() {
alert('haha');
}
</script>
<body>
<form>
<input type="text" name="aaa"/>
<br />
<input type="text" name="Content"/>
<br />
<input type="button" name="Submit" onclick="ubmit()"/>
</form>
</body>
</html>

posted @ 2015-03-15 21:06  你的KPI完成了吗  阅读(3400)  评论(0)    收藏  举报