Powered By Blogger

Wednesday, April 9, 2014

how to get url in javascript

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>

No comments:

Post a Comment