我自己举个列子,在文件 par.asp 有个iframe(叫chi),所对应的文件是children.asp
,在children.asp中有一个input ,现在在par.asp 中如何用jscript 来掩藏 children.asp中的input???

解决方案 »

  1.   

    document.all("iframename").document.formName.inputName.value
      

  2.   

    sorry
    document.frames("iframename").document.formName.inputName.value
      

  3.   

    如果不是inputName,而是个表格,那怎么办?
      

  4.   

    document.frames("iframename").document.getElementById("CtrlID")
      

  5.   

    我用
    document.frames("iframename").document.getElementById("CtrlID")
    能取得它的.style.display属性,但我还要对它进行操作,使它可见和不可见,
    那又怎么办?
      

  6.   

    操作style属性最好使用document.all("....").style.....document.all("iframename").style.pixelLeft = 100;
      

  7.   

    var obj=document.frames("iframename").document.getElementById("CtrlID")
    obj.style.display="none" //不可见
    obj.style.display="" //可见
      

  8.   

    谢谢 yaya() ( )