Location Object

The location object gives us information on the url such as the href. Check out the properties and methods on MDN…

The way we can use it is as follows…


This will log out the url of the page.

Happy Coding!

Clay Hess

Excuse Our Mess! We are currently remodeling!

We are currently in the process of redesigning our site. We appreciate your patience as some areas of our site show chipping and paint peeling. We hope to have it sparkling soon!

Skip to content