Find the location in website of current page code example Example: get actual url in variable var currentLocation = window.location;