JavaScript中onChange、onselect 、onmouseout等事件

<%@ 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    

  

60           

61        

62        

  

63            

64        

  

65       

66     用JS脚本实现两个输入框的内容一致   

67       

68           

69       

70    

  

71       

72       

73     from中input的onchang事件   

74       

75           

76       

77     用onselect事件控制 文档不能被复制   

78    

  

79       

80       

81          

82   

83

文章出处:飞诺网(www.firnow.com):http://dev.firnow.com/course/1_web/javascript/jsjs/200855/113589.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值