崩溃啊,要用以下代码将scorethreshold的值传到quiz.html这个页面中,为什么穿不多去?求各位帮忙
<html><head>
  <script>
    var scorethreshold;
    var childWindow;
    function createChildWindow(){
      scorethreshold=document.quiz.score.value;      childWindow=window.open( "quiz.html?"+ scorethreshold, "", "resizable = yes, "+ 
               "toolbar = yes, menubar = yes, status = yes, " + 
               "location = yes, scrollBars = yes");
     
      }
  </script>
</head><body>
  <form name="quiz">
<p>
  <strong><label>Set your score threshold:
     <input name="score" type="text" size="11"></label></strong> 
</p>  </form>
</body></html>

解决方案 »

  1.   

    你这样传其实也没错
    可能是获取窗口的代码没写对
    你查看一下open出来的窗口的地址
    如果?后面有值说明传递对了
      

  2.   

    childWindow=window.open( "quiz.html?temp="+scorethreshold, "", "resizable = yes, "+  
      "toolbar = yes, menubar = yes, status = yes, " +  
      "location = yes, scrollBars = yes");
      

  3.   

    childWindow=window.open( "quiz.html?temp="+scorethreshold, "", "resizable = yes, "+   
      "toolbar = yes, menubar = yes, status = yes, " +   
      "location = yes, scrollBars = yes");
      

  4.   


    childWindow = window.open( "quiz.jsp?method="+scorethreshold, "", "resizable = yes, toolbar = yes, menubar = yes, status = yes, " +   
      "location = yes, scrollBars = yes");