Mega Code Archive

 
Categories / JavaScript Tutorial / Document
 

Document domain

The domain property initially contains the hostname of the server from which the document was loaded. <html>     <script>     <!--     document.write("The domain: ",document.domain);     -->     </script>     </html>