The property initially returns the host name of the server the page is served from. The property can be assigned the domain suffix to allow sharing of pages across frames. For example, a page in one frame from home.microsoft.com and a page from www.microsoft.com initially would not be able to communicate with each other. However, by setting the domain property of both pages to the suffix "microsoft.com", both pages are considered secure and access is available between the pages.
解决方案 »
- 有关javascript中添加事件函数的问题
- html中两个p标签之间如何做到不换行~~~~~~~~~~~~~~~~~~~~~标题这么长可以看到了吧~~~~~~~~~~~
- 庆祝一下,以后又要多兼容一种浏览器(Google-Chrome) 囧
- jQuery源代码第一行
- 我现在需要在一个页面停顿3秒种后重定向一个网址。脚本怎么写呢?
- 如果我要在html中用到javascript里面的一个变量该怎么办,急!
- 急:如何判断一个变量是不是数组???
- 哪位能不能提供一点javascript的电子书?谢谢!
- 网页加载效果
- JS空格事件选定下拉框的值,并获取选定的值?
- 请教:一个让我头痛的dhtml问题
- 我在IE浏览器里面点击任何链接,都没反应, 怎么办啊! 急!!!在线等待
<body>
<iframe id=t src="http://other.com/b.htm"></iframe>
</body>这个时候a.htm是不能访问iframe中的文件b.htm的。因为他们在不同的域
但是,如果b.htm里面包含了以下几行代码的话
<SCRIPT language=JavaScript>
document.domain="gorush.com";
</SCRIPT>那么a.htm就可以完全访问b.htm了
使浏览器能够接受来自xxx.edainfo.net的文档,应为那些服务器做的安全保护