Javascript初学者问下onSubmit="hello()"为什么不执行呢?
<html>
<body bgColor="lightgrey">
<script language="JavaScript">
<!-- Hiding
function hello(){
alert("你确认提交吗?");
</script>
<form onSubmit="hello()">
<input type="text" name="txt" value="测试文本">
<input type="submit" value="提交" >
</form>
</body>
为什么form中的onSubmit不调用hello()呢?