Search
 
SCRIPT & CODE EXAMPLE
 

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')
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: nodemail self signed certificate in certificate chain 
Javascript :: regex find img tag 
Javascript :: js reduce concat numbers 
Javascript :: expo update react native 
Javascript :: modify root in javascript 
Javascript :: javascript add string to middle of string 
Javascript :: javascript assign value to input using name 
Javascript :: create slug in javascript 
Javascript :: javascript trigger button click using class name 
Javascript :: length of elements with display none 
Javascript :: hello world expressjs 
Javascript :: center horizontally react native 
Javascript :: js function return fetch result 
Javascript :: how replace 0 without replace 10 in js 
Javascript :: form input field readonly angular 
Javascript :: random color code javascript 
Javascript :: how to call create react app 
Javascript :: reaact native expo jsx 
Javascript :: century from year javascript 
Javascript :: nestjs cli create project 
Javascript :: react get input value on button click functional component 
Javascript :: how to use ionicons in react 
Javascript :: uuid for react native 
Javascript :: validate json file programmatically in python 
Javascript :: jquery element distance from top of window 
Javascript :: check if an HTML element has any children 
Javascript :: js clean nested undefined props 
Javascript :: date regex 
Javascript :: logbox ignore warnings 
Javascript :: pattern cpf js 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =