1)document.getelementbyid(),document没有这个函数。
mbq.setAttribute(attrName , value [, caseSensitive]),是设置和添加一个mbq对象的属性的。(注意大小写)。
mbq.innerHTML,用于取出和设置mbq对象内部的HTML代码的。2)函数调用中参数用了""或'',代表该参数是字符参数。3)object.which不知道是什么!没有用过。
object.keyCode[ = keyCode],只能用于event对象。也就是event.keyCode,是一个属性。返回当前键盘相应键的Unicode编码。(注意大小写)资料都可以在MSDN的帮助光盘三。你只要安装了msdn都可以查到的。

解决方案 »

  1.   

    更正,我在更高级的MSDN中找到了oElement = document.getElementById(sIDValue)这个函数,就是通过HTML元素的ID值,取出你需要的元素。
      

  2.   

    getElementById Method--------------------------------------------------------------------------------Returns a reference to the first object with the specified value of the ID attribute.SyntaxoElement = document.getElementById(sIDValue)ParameterssIDValue Required. String爐hat specifies the value of an ID attribute. Return ValueReturns the first object with the same ID attribute as the specified value.ResIf the ID value belongs to a collection, the getElementById method returns the first object in the collection.ExampleThis example uses the getElementById method to return the first occurrence of the ID attribute value, oDiv.<SCRIPT>
    function fnGetId(){
       // Returns the first DIV element in the collection.
       var oVDiv=document.getElementById("oDiv");
    }
    </SCRIPT>
    <DIV ID="oDiv">Div #1</DIV>
    <DIV ID="oDiv">Div #2</DIV>
    <DIV ID="oDiv">Div #3</DIV>
    <INPUT TYPE="button" VALUE="Get Names" onclick="fnGetId()">
      

  3.   

    http://msdn.microsoft.com/library/default.asp微软的 MSDN 官方网站,这里面你可以查到最新的,最全的MSDN。