Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get browser url in javascript

function getURL() {
  alert("The URL of this page is: " + window.location.href);
}
 
PREVIOUS NEXT
Tagged: #browser #url #javascript
ADD COMMENT
Topic
Name
5+9 =