this代表body这个对象,document就是页面上的元素集合
javascript里严格区分大小写的。

解决方案 »

  1.   

    在INPUT有FORM时不能直接INPUT.VALUE,只能FORM.INPUT.VALUE,或document.getElementById("input");
      

  2.   

    this 代码当前窗口的window对象,可以用代码  alert(this == window);来测试证明.
    document 是this的文档对像 
    要访问页面上的元素有多种方法,一般通用可以用
    document.getElementById("id");
    document.getElementsByName("name")
    document.getElementsByTagName("tagname")
    在form之外的元素可以直接用id来引用,在form内的元素用formid.objectid来访问.