请教个问题
在做一个框架页面,怎样把右边框架中的Dropdownlist控件的值传递到左边框架,作为左边javascript函数的实参?

解决方案 »

  1.   

    在右边框架中的Dropdownlist控件中的onChange事件加入左边javascript函数(document.getElementById("控件id").options[document.getElementById("控件id").selectedIndex].value)
      

  2.   

    left:
    var sel = top.rightFrameName.document.formName.selectName;
    abc(sel.options[sel.selectedIndex].value);
      

  3.   

    谢谢,右边框架中是以一个按钮触发事件,在响应函数中调用左边前台Javascript函数,将右边框架中的Dropdownlist控件中的值作为实参传递过去。
      

  4.   

    right:
    <button onclick="doclick()">..function doclick(){
       sel = document.formName.selectName;
       top.leftFrameName.functionName(sel.options[sel.selectedIndex].value);
    }