Edit This Code:
See Result »
Click the button to alert the hostname of the current URL.
Try it
Result: