Mega Code Archive

 
Categories / JavaScript DHTML / Development
 

Return the domain name of the documents server

<html> <body> The domain name for this site is:  <script type="text/javascript">         document.write(document.domain) </script> </body> </html>