下面两个页面是可以执行的
a.html
----------------------------------------------------------<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>A</title>
</head>
<body>
<input type="text" value="123" id="tt">
<iframe src="b.htm" id="frame_1" ></iframe>
</body>
</html>b.html
----------------------------------------------------------<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>B</title>
</head>
<body>
<input type="button" onClick="window.parent.document.getElementById('tt').value='abcde' " value="Button" >如果a.html和b.html 不在同一个域名下调用:http://www.test1.com/a.htm<iframe src="http://www.test2.com/b.htm">  id="frame_1" ></iframe> js 会报错,提示 ‘没有权限’ ?麻烦高手解答。。万分感谢。