zoukankan      html  css  js  c++  java
  • IE6浏览器弹出窗口,父窗口传值

    IE下弹出窗口

    function SelUserfulView_return() {
    var  url="你的url地址";
    //弹出窗口
    window.showModalDialog(url + "&t=" + Math.random(), window, "status:false;dialogWidth:1200px;dialogHeight:710px;dialogLeft:350px;dialogTop:350px;"); 
    //参数为6个
    //第二个参数为:window,将本页面数据传值给子窗口 
    }

    IE返回值

    function SelAUserfulView1() {
        try {
    var words="张,三"
    if (DCGridGetRadioSelValue() != "") { var response = DCGridGetRadioSelValue();//单选 var sArray = response.split(','); var Obj1 = window.dialogArguments.document.getElementById("父级窗口标签ID1");//用window.dialogArguments来获取父窗口的参数 var Obj2 = window.dialogArguments.$("#父级窗口标签Id2");//用window.dialogArguments来获取父窗口的参数 Obj1.value = sArray[1]; Obj2.val(sArray[2]); } else { alert("没有选中行!"); return; } window.close(); } catch (e) { window.close(); } }

     刷新父级窗口

    //刷新父窗口
     parent.window.location.href = document.referrer;
    //关闭窗口
    window.close();
    

      

  • 相关阅读:
    Redis之主从复制原理
    字符编码
    Android studio报错 "No IDEA annotations attached to the JDK 1.8, some issues will not be found" 解决方法
    json
    ajax
    《人月神话》读后感(三)
    Jquery基础
    EL表达式
    Android Studio更改虚拟机位置
    Mybatis之mybatis的介绍
  • 原文地址:https://www.cnblogs.com/LessIsMoreZ/p/7442978.html
Copyright © 2011-2022 走看看