Edit The Code:
See Result »
Try it Yourself - ©
w3ii.com
Click the button to display the hostname and port number of the current URL.
Try it