The host property represents the host portion of the URL.
<html> <head> <title> Using the host property of the Link object</title> </head> <body> <script language="JavaScript"> <!-- function showHost(){ alert(document.links[0].host); } --> </script> Click the button to see the host for the URL