Edit This Code:
See Result »
Click the button to display the hostname and port number of the current URL.
Try it
Result: