您的位置:首页 > Web前端 > JavaScript

JS 在open打开的窗口中调用父页面JS方法

2016-05-06 21:47 639 查看
function uploadImgFile(id){

window.open("${base}/ajax/picupload.action?parentImgUrlId="+id,"","height=300, width=500, toolbar =no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no");

//document.getElementById(id).value = someValue;

}

function testfun(aaa){

alert("111+"+aaa);

function setParentImgUrl(){

window.opener.testfun('aaaaa');

//window.opener.document.getElementById("${parentImgUrlId}").value = document.getElementById('img_url').value;

window.close();

}

资料来源: http://jxdwuao.iteye.com/blog/793234
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: