window.opener.document.getElementById("mycid").value错误:Permission denied
用下列方式返回通过window.open打开的页面的值时,提示JS错误:错误:Permission denied
window.opener.document.getElementById("mycid").value ='12';
谁知道是什么原因
------解决方案--------------------
你是不是js跨域了?http://topic.csdn.net/u/20100108/17/cc5255c6-a956-4ff3-a603-c1d17ef95165.html
------解决方案--------------------
top.document.getElementById("mycid").innerHTML=document.getElementById("mycid").value ='12';
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号