Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Get the current URL with JavaScript?

console.log(window.location.href);

As noted in the comments, the line below works, but it is bugged for Firefox.
document.URL
Source by learn.coderslang.com #
 
PREVIOUS NEXT
Tagged: #Get #current #URL
ADD COMMENT
Topic
Name
8+1 =