Firefox 中 document.all可以么

解决方案 »

  1.   

    Firefox 中 document.all不可以下面的两种都可以<script language="javascript">
      function test() {
       alert(document.getElementById("TextBoxId")).value);
      }
      </script>
    <input type="text" name="TextBoxId" value="aa" onchange="test()">
      

  2.   

    Firefox中对于
     <span id="id">2</span>
    又要怎么取值呢
      

  3.   

    <input id="TextBoxId" value="aa">
    document.getElementById("TextBoxId").value<span id="spanid">2</span>
    document.getElementById("spanid").innerHTML
      

  4.   

    Firefox中对于
    <span id="id">2</span>
    又要怎么取值呢document.getElementById("id").innerHTML
      

  5.   

    问题已解决,放分
    结果:meizz(梅花雪)大佬的答案正解<input id="TextBoxId" value="aa">
    document.getElementById("TextBoxId").value<span id="spanid">2</span>
    document.getElementById("spanid").innerHTML谢了.