案例:javascript案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
3
<body>
4
5
<h1>What is your name?</h1>
6
<form name="testform" action="/example/html/form_action.aspx"
7
onSubmit="alert('Hello ' + testform.inputfield.value +'!')">
8
<input type="text" name="inputfield" size="20">
9
<input type="submit" value="Submit">
10
</form>
11
12
</body>
13
14
</html>