window.opener.document.getElementById("mycid").value异常:Permission denied

WBOY
Release: 2016-06-13 13:46:15
Original
1388 people have browsed it

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';

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template