form basics

来源:网络 责任编辑:栏目编辑 发表时间:2013-07-01 13:31 点击:

 Web forms are represented by the    < form >    element in HTML and by the   HTMLFormElement  type in
JavaScript. The   HTMLFormElement  type inherits from   HTMLElement  and therefore has all of
the same default properties as other HTML elements. However,   HTMLFormElement  also has the
following additional properties and methods:
 
  acceptCharset   —  The character sets that the server can process; equivalent to the HTML
                                 accept - charset  attribute. 
  action   —  The URL to send the request to; equivalent to the HTML   action  attribute. 
  elements   —  An   HTMLCollection  of all controls in the form.
  enctype   —  The encoding type of the request; equivalent to the HTML   enctype  attribute. 
  length   —  The number of controls in the form.
  method   —  The type of HTTP request to send, typically    “ get ”    or    “ post ”   ; equivalent to the
                      HTML   method  attribute. 
  name   —  The name of the form; equivalent to the HTML   name  attribute. 
  reset()   —  Resets all form fields to their default values.
  submit()   —  Submits the form.
  target   —  The name of the window to use for sending the request and receiving the response;
                    equivalent to the HTML   target  attribute.

作者“heylichen”
 

    相关新闻>>

      发表评论
      请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
      用户名: 验证码:点击我更换图片
      最新评论 更多>>

      推荐热点

      • Gb2312转utf-8编码的方法(vbs+js)
      • 如何使用Ajax技术开发Web应用程序(1)
      • js跳转路径问题
      • JavaScript模仿桌面窗口
      • 用js检测两个线段是否相交
      • 我知道的JavaScript -- 设计模式(桥接)应用之 – 验证器
      • 运用JavaScript构建你的第一个Metro式应用程序(on Windows
      • 我是如何去了解jquery的(六),案例之幻灯片轮换
      • Jquery封装幻灯片效果
      网站首页 - 友情链接 - 网站地图 - TAG标签 - RSS订阅 - 内容搜索
      Copyright © 2008-2015 计算机技术学习交流网. 版权所有

      豫ICP备11007008号-1