how to get full url os specific site code example Example: javascript get url path window.location.pathname