You get full URL :
types you got :
1. document.URL
2. location.protocol
3. var currentLocation = window.location;
Basic Structure of a URL
<protocol>//<hostname>:<port>/<pathname><search><hash>
types you got :
1. document.URL
2. location.protocol
3. var currentLocation = window.location;
Basic Structure of a URL
<protocol>//<hostname>:<port>/<pathname><search><hash>
No comments:
Post a Comment