<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
02 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
03 http://www.w3.org/1999/xhtml" >
04
05
06
07 <script language ="javascript " type ="text/javascript" >
08 function confirm ()
09 {
10 var bln ="数据提交后一切后果自负,请再次确认!";
11 alert (bln) ;
12 }
13 function prompt ()
14 {
15 var str ="请输入密码";
16 alert(str);
17 }
18 function confirmcheck()
19 {
20 if(confirm("你确定提交这个表单吗?"))
21 {
22 return true ;
23 }
24 else
25 {
26 return false ;
27 }
28
29 }
30 function onchangetext ()
31 {
32 alert(''asd的值或属性发生了变化!'');
33 }
34 function onselecttext()
35 {
36 alert(''此文件必能复制!'');
37 }
38 function onunload()
39 {
40 alert(''谢谢你的到来,欢迎你下次再来!'');
41 }
42 function onmouseover()
43 {
44 alert(''鼠标掠过!'');
45 }
46 function onmouseout()
47 {
48 alert (''鼠标已离开!'');
49 }
50
51 </script>
52
53
54
55
56 两个script函数可以写在一个script里面,连接设空用“#”后面加的是点击事件,并调用script中的函数
57 提交
58 密码
59
66 用JS脚本实现两个输入框的内容一致
67
68
69
70
73 from中input的onchang事件
74
75
76
77 用onselect事件控制 文档不能被复制
78
81
82
83
文章出处:飞诺网(www.firnow.com):http://dev.firnow.com/course/1_web/javascript/jsjs/200855/113589.html