Return the domain name of the document's server : Server Info « Development « JavaScript DHTML
- JavaScript DHTML
- Development
- Server Info
Return the domain name of the document's server
<html>
<body>
The domain name for this site is:
<script type="text/javascript">
document.write(document.domain)
</script>
</body>
</html>
Related examples in the same category