zoukankan      html  css  js  c++  java
  • 子窗口打开父窗口

    <input type="button" id="selectJS" name="selectJS" value="选择" class="button"
    style="30" onMouseOver="this.style.cursor='hand'"
    onClick="javascript:JsMod('${pageContext.request.contextPath}/jspyfa/selectJx02',800,600);fillOtherText()"/>

    function JsMod(htmlurl,tmpWidth,tmpHeight){
    htmlurl=getRandomUrl(htmlurl);
    window.open(htmlurl, window, "height="+tmpHeight+",width="+tmpWidth);
    return false;
    }

    子窗口回写

    function setSelectValue(cxxf02id,xmmc){
    window.opener.document.getElementById("kch").value = cxxf02id;
    window.opener.document.getElementById("kcmc").value = xmmc;
    window.close();

    }

  • 相关阅读:
    Jenkins搭建
    Hexo搭建静态博客站点
    FactoryBean简介以及Mybatis-Spring应用
    ArrayList源码分析
    BCZM : 1.8
    BCZM : 1.7
    BCZM : 1.6
    BCZM : 1.5
    BCZM : 1.4
    BCZM : 1.3
  • 原文地址:https://www.cnblogs.com/itniwota/p/6762382.html
Copyright © 2011-2022 走看看