Good day
I need this check
if (window.location.href != "http://example.ru/") {alert(1)} else {alert(0)}
specify that after http://example.ru/ can be any value, check only the subdomain (like http://krasnoyarsk.example.ru/ ), I don’t know how to implement it by inexperience
location.origin
will most likely fit here, although it looks like it is in few places supported :-) orlocation.host
- Grundy