如题,我在pc上的浏览器这样是可以的,但是在微信浏览器中就没办法将子页面的值传给父页面了,请问下怎么做才能兼容微信浏览器呢?
父页面中的js:
window.open('http://XXXX/tag.html','newwindow','height=250,width=300,top=300,left=300,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no')
子页面中js:
window.opener.document.all.txt_name.innerHTML=names;
window.opener.document.all.tag_id.value=tag_ids;
//window.opener.document.getElementById("txt_name").innerHTML=names;
window.close();
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...