蚁群

登陆到蚁群
Ants Account
账户:
密码:
  在这台电脑记住我.
我还没有账号.

帖子
索引
«6月 2008年7月 8月»
29 30 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31 1 2

链接
Red Poing
PHP5 研究
老冯博起来了

槽...
画国人
硅谷动力
CITIC Pacific
电教馆资源中心

 Something about "Illegal document.domain value"
episome 发起于2008-07-16 21:39:48,最后修改于2008-07-16 21:39:480条跟帖。 javascript
引用
... but when you try to change document.domain back to the original value you get an error. From Firefox:

Error: [Exception... "Illegal document.domain value"
code: “1009″
nsresult: “0×805303f1 (NS_ERROR_DOM_BAD_DOCUMENT_DOMAIN)”
location: “http://www.fettig.net/playground/ajax-subdomain/test3-iframe.html
Line: 13″]

Mozilla and Opera are more strict about the value of document.domain - it can only be set to the current value or a higher-level domain. For example, if the host is aaa.bbb.example.com, I could set document.domain to bbb.example.com. At that point I could change it again, to example.com, but I couldn’t change it back to aaa.bbb.example.com. Once you move to a higher-level domain, you’re stuck there. ......