1. Set or get the entire URL as a string:
window.location.href
2. Set or get the port number associated with the URL:
window.location. port
3. Set or get the protocol part of the URL
window.location.protocol
4. Set or get the part following the question mark in the href attribute
window.location.search
5. Get the value of the variable (intercept the part after the equal sign)