title: Make popup opening after a while even if the user is navigating to other page
body: <p>I need a bit of help with this javascript code. </p>
  
  <p>I have this code:</p>
  
  <pre><code>jQuery(document).ready(function(){
      if (document.cookie.indexOf('visited=true') == -1) {
      var fifteenDays = 1000*60*60*24*1;
      var expires = new Date((new Date()).valueOf() + fifteenDays);
      document.cookie = "visited=true;expires=" + expires.toUTCString();
      window.setTimeout(
  function() {
      jQuery.colorbox({href:"/popup.htm", open:true, iframe:false, innerWidth:600, innerHeight:490}); 
          },
  
  30000 )}});   
  </code></pre>
  
  <p>It's supposed to open a popup after 30 seconds, one time per day. The issue is that the popup it's opening after 30 seconds on stay on a page. It's there any way to make it to open after 30 seconds even if the client navigate to other page ? So, if the user stay 15 seconds on a page and 15 on another, getting the popup.</p>
  
  <p>Thank you in advance</p>