摘要: <script> function dclick() { form1.text.value = "您双击了页面!"; } function Click() { form1.text.value += "您单击了页面"; } function down() { form1.text.value = " 阅读全文
posted @ 2015-07-06 16:07 程序猿凯 阅读(412) 评论(0) 推荐(0) 编辑
摘要: <script> function mymethod(str) { alert("您输入的是:"+str); } </script><form action="" method="get"><!-- 调用mymethod()函数this.value取得当前对象的值做参数 --><input type 阅读全文
posted @ 2015-07-06 15:18 程序猿凯 阅读(321) 评论(0) 推荐(0) 编辑
摘要: <body> <form action="" id="form1" name="form1" method="post"> <label>姓名: <input type="text" name="textfield" /> </label> <p> <label>密码: <input type="p 阅读全文
posted @ 2015-07-06 14:29 程序猿凯 阅读(249) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript">window.document.write("这个网页文件来自:".bold());window.document.write(window.location.toString());</script> 阅读全文
posted @ 2015-07-06 13:32 程序猿凯 阅读(228) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> function Card(name, address, phone) { this.name = name; //初始化名片信息 this.address = address; this.phone = phone; this.pri 阅读全文
posted @ 2015-07-06 11:10 程序猿凯 阅读(378) 评论(0) 推荐(0) 编辑