![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
文章平均质量分 54
ludaojuan21
这个作者很懒,什么都没留下…
展开
-
js小收藏
1.document.write(""); 输出语句 2.JS中的注释为// 3.传统的HTML文档顺序是:document->html->(head,body) 4.一个浏览器窗口中的DOM顺序是:window->(navigator,screen,history,location,document) 5.得到表单中元素的名称和值:document.getElementById(...原创 2008-09-22 16:57:52 · 76 阅读 · 0 评论 -
js子窗口传值回父窗口
New Document function openWindow() { var result = window.showModalDialog("childen.html","DialogHeigth=40,DialogWidth:100px,...原创 2008-09-22 17:01:28 · 197 阅读 · 0 评论 -
收集的非常不错的js脚本
1 >屏蔽功能类 1.1 屏蔽键盘所有键 1.2 屏蔽鼠标右键 在body标签里加上oncontextmenu=self.event.returnvalue=false 或者 function nocontextmenu() { if(document.all) { event.cancelBubble=tr...原创 2008-09-26 10:12:40 · 75 阅读 · 0 评论 -
js校验经典
一、验证类 1、数字验证内 1.1 整数 1.2 大于0的整数 (用于传来的ID的验证) 1.3 负整数的验证 1.4 整数不能大于iMax 1.5 整数不能小于iMin 2、时间类 2.1 短时间,形如 (13:04:06) 2.2 短日期,形如 (2003-12-05) 2.3 长时间,形如 (2003-12-05 13:04:06) 2.4 只有年和月。形如(2003-...原创 2008-10-16 10:02:37 · 102 阅读 · 0 评论