I want to reach something like this:
if(window.location.href.indexOf("http://stackoverflow.com/questions/")){
... then to this
}
but it still runs when url looks like this http://stackoverflow.com/questions/ask/
if(window.location.href === "http://stackoverflow.com/questions/"){
... then to this
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With