Browse - programming tips - javascript get current urlDate: 2009dec28 Level: beginner Language: javaScript Q. How can I get the current URL? A. Access the href member of the location object like this: function displayCurrentUrl() { alert('Current URL is ' + location.href); }
Add a commentSign in to add a comment |