Return the domain name of the document's server : Server Info « Development « JavaScript DHTML






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