`
271788203
  • 浏览: 484309 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

document.all和document.forms

 
阅读更多

document.all:包括页面上的所有FORM的内容和设计元素。
document.forms[0]:是指的当前表单。
在实际的应用中,如果页面上只有一个form可以用document.forms[0],如果有多个form document.all比较适用。

分享到:
评论

相关推荐

    表单验证大全

    else document.forms[0].submit(); } } [removed] 够了吧 :) 屏蔽右键 很酷 oncontextmenu="return false" ondragstart="return false" onselectstart="return false" 加在body中 二 2.1 表单项不能为空 ...

    JavaScript权威指南

    Document Information Properties Section 14.5. Forms Section 14.6. Images Section 14.7. Links Section 14.8. Anchors Section 14.9. Applets Section 14.10. Embedded Data Chapter 15. Forms...

    javascript函数的解释

    25.取出窗体中的所有表单的数量:document.forms.length 26.关闭文档的输出流:document.close(); 27.字符串追加连接符:+= 28.创建一个文档元素:document.createElement(),document.createTextNode() 29.得到元素的...

    浏览器兼容的JS写法总结

    一、元素查找问题 1. document.all[name] ... 如:IE中可以使用document.forms(“formName”)来返回名字为”formName”的Form,但在Firefox却行不通。  (2)解决方法:使用[],上例中可以改为document.fo

    107个常用javascript语句

    25.取出窗体中的所有表单的数量:document.forms.length 26.关闭文档的输出流:document.close(); 27.字符串追加连接符: = 28.创建一个文档元素:document.createElement(),document.createTextNode() 29.得到元素的...

    js+html滑出式菜单

    IE=document.all; NS=document.layers; hdrFontFamily="Verdana"; hdrFontSize="2"; hdrFontColor="white"; hdrBGColor="#666666"; linkFontFamily="Verdana"; linkFontSize="2"; linkBGColor="white"; ...

    HTML.Display.Components.v9.22.Full.Sources.For.Delphi

    All three are HTML document display components: ThtmlViewer is the basic component. ThtmlViewer displays single (non-frame) documents. It forms the basis for the other two components. TFrameViewer ...

    jsp表单验证汇总

    }else document.forms[0].submit();}}够了吧 屏蔽右键 很酷 oncontextmenu="return false" ondragstart="return false" onselectstart="return false"加在body中二2.1 表单项不能为空...

    Beginning JavaScript 4th Edition Oct 2009

    Chapter 12: Dynamic HTML and the W3C Document Object Model . . . . . . . 391 Chapter 13: Using ActiveX and Plug-Ins with JavaScript . . . . . . . . . . . . . . . 469 Chapter 14: Ajax . . . . . . . . ....

    js验证表单 js验证表单

    else document.forms[0].submit(); } } 够了吧 :) 屏蔽右键 很酷 oncontextmenu="return false" ondragstart="return false" onselectstart="return false" 加在body中 二 2.1 表单项不能为空 <!-- function ...

    HTMLViewer11.4

    All three are HTML document display components: THtmlViewer The basic component. THtmlViewer displays single (non-frame) documents. It forms the basis for the other two components. TFrameViewer ...

    delphi HTML component

    All three are HTML document display components: ThtmlViewer The basic component. ThtmlViewer displays single (non-frame) documents. It also forms the basis for the other two components. ...

    NIST SP800-125.pdf

    All forms of virtualization other than server and desktop full virtualization are outside the scope of this document. Most existing recommended security practices remain applicable in virtual ...

    html5_css3.pdf

    it might not cover all exam topics. If you are preparing for the exam, you should use additional study materials to help bolster your real-world experience. For your reference, a mapping of the topics...

    如何实现web页面的提示保存功能

    每每听到客户抱怨自己修改和很久的数据由于自己的一个误操作而丢失时,总想让web页面也有像window窗体一样具有提示保存的功能。所以,经过一段时间的研究以后终于实现了这个功能!============ ...

    Eloquent JavaScript 3rd edition by Marijn Haverbeke (高清原裝版)

    All code in this book may also be considered licensed under an MIT license. Contents Introduction (Part 1: Language)Values, Types, and Operators Program Structure Functions Data Structures: Objects ...

    jQuety1.3中文说明

    $("input:radio", document.forms[0]); ________________________________________ 在一个由 AJAX 返回的 XML 文档中,查找所有的 div 元素。 jQuery 代码: $("div", xml.responseXML); jQuery(html,...

    AJCC Cancer Staging Form Supplement.pdf

    The staging forms may be used to document cancer stage at different points in the patient’s care and during the course of therapy, including the time before therapy begins, after surgery and ...

    JavaScript 圣经第5版-Javascript编程宝典--黄金版 .rar

    Chapter 9: Forms and Form Elements. Chapter 10: Strings, Math, and Dates. Chapter 11: Scripting Frames and Multiple Windows. Chapter 12: Images and Dynamic HTML. Part III: Document Objects ...

    ecshop整合替换百度编辑器 ueditor,测试通过

    //document.forms['theForm'].reset(); 下载: http://pan.baidu.com/s/1hqGLeLm 密码: qjuw 文件中已含js冲突修改文件,另外已修改php/config.json中的图处保存路径,用户也可以自行修改!

Global site tag (gtag.js) - Google Analytics