HTML DOM domain properties
Definition and Usage
domain property to return the current document download server domain:
grammar
document.domain
Browser Support
All major browsers support attribute domain
Examples
Examples
Returns domain name server to download the current document:
<html>
<body>
加载这个文件的域名:
<script>
document.write(document.domain);
</script>
</body>
</html>
<body>
加载这个文件的域名:
<script>
document.write(document.domain);
</script>
</body>
</html>
try it"
Document Object