get source urn of currtn javascript code example Example: get actual url in variable var currentLocation = window.location;