这好像是浏览器自带的安全性限制吧,如果<iframe id="sina" name="sina" src="www.sina.com.cn"> </iframe> 的src资源是同一服务器上的就能用document.frames('sina').document访问,如果不是就不能访问。