Edit This Code:
See Result »
Click the button to display the hostname (and the port if not 80) of the current URL.
Try it
Result: