broser get current utl without path code example Example: get actual url in variable var currentLocation = window.location;