I have this urls : https://ift.tt/2sRdT86 / https://ift.tt/2kUtWyp / https://ift.tt/2xZMg2m and a lot more of them.
I would like to have a javascript function for if( regexforDomaine . "mywebsite" . regexforextend == true ){}
I have been trying if(location.hostname.match('/(.)mywebsite(.)')){} But it do not seem to be working.
Any idea there ? Thank you !
Aucun commentaire:
Enregistrer un commentaire