I have some code I am trying to execute on my webpage. At first I was trying to just using JS but now I am wrapping it in JQuery as suggested here. Code is loading in page but no alert is happening...
jQuery(document).ready(function( $ ){
window.onload = function() {
alert(location.href);
if(location.href != "https://linestar.ca/contact-us/") {
alert("Make sure you use the right contact Tab!");
} else {
echo"LineStar Welcomes You!"
}
};
});