Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Get the current URL with JavaScript?

window.location.href
As noted in the comments, the line below works, but it is bugged for Firefox.

document.URL
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Get #current #URL
ADD COMMENT
Topic
Name
5+6 =