Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get url of website javascript

document.URL
> "http://example.com/page1.html"

document.location.href
> "http://example.com/page1.html"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #url #website #javascript
ADD COMMENT
Topic
Name
5+2 =