为什么无法读取iframe远程页面的代码?
<td><iframe src="http://www.sina.com.cn" name="mainframe" style="width:400; height:300; border-top-style:solid; border-top-color:red; border-left-style:solid; border-left-color:red; border-right-style:solid; border-right-color:blue; border-bottom-style:solid; border-bottom-color:green"></iframe>
window.mainframe.document.body.innerText;//此行访问源码出错.
拒绝访问!