开发者

If a webserver has a host name and a different alias DNS name, what will be the value of document.domain?

I have a webserver with the following host name and DNS alias name.

Host name - server1.aa.xx.company.com
Alias name - server1.bb.xx.company.com

In the above scenario, what will be the value of JavaSc开发者_开发知识库ript DOM object document.domain? Will it be server1.aa.xx.company.com or will it be server1.bb.xx.company.com?


what will be the value of JavaScript DOM object document.domain

It will be the domain the page was requested in the browser on. Javascript isn't interested in DNS aliases - just in what it says in the browser's address bar.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜