I would like to execute the up () function; if url contains "invt".
So far I have this:
if(window.location.pathname == "/invt/"){ alert("invt"); }
However, this was not a warning to me. Any ideas?
Since then I have succeeded, thanks to the answers below.
Consider:
$(document).ready(function () { if(window.location.href.indexOf("invt") > -1) {
Myles source share