To get current URL in JavaScript you just need to use the URL property of the document object.
Sample Javascript
var currUrl = document.URL;
for more informations see The absolute URI of the document
All the Code Snippets and Samples you need
To get current URL in JavaScript you just need to use the URL property of the document object.
Sample Javascript
var currUrl = document.URL;
for more informations see The absolute URI of the document
You must be logged in to post a comment.
RT @CodeSnippetsNET: How to get current URL in JavaScript: http://t.co/7DSxq9sDIJ #javascript #js
RT @CodeSnippetsNET: How to get current URL in JavaScript: http://t.co/7DSxq9sDIJ #javascript #js