Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get link js

// get link
window.location.href

//condition with link
if (window.location.href =='https://www.YourLink.com') {
console.log('it's true')
}else{
console.log('it's false')
}
 
PREVIOUS NEXT
Tagged: #link #js
ADD COMMENT
Topic
Name
3+6 =