Currently using this code to show a popup if the text is found on that page. However, I wanted to show that popup on other pages if the text exists on the original page.
Example Text is on /invoice I navigate to /payment Pop up still runs
<script type="text/javascript">
window.onload = function(){
//If the body element of the page contains 'one hour turnaround' then trigger an alert
if(document.body.innerHTML.toString().indexOf('one hour turnaround') > -1){
alert("You have a ONE HOUR TURNAROUND order");
}};
</script>