title: Access main window setTimeoutID in same domain iFrame
body: <p>I am trying to alert user for inactivity about 30 secs. So in my application I am setting timeout for alert.</p>
  <p>Main window code:</p>
  <pre><code>&lt;script&gt;
      var timeoutID = setTimeout('alert(&quot;You are logged out due to inactivity.&quot;)', 30000);
  &lt;/script&gt;
  </code></pre>
  <p>iFrame :</p>
  <pre><code>&lt;script&gt;
    $(document).ajaxStop(function(){
       clearTimeout(timeoutID);
       var timeoutID = setTimeout('alert(&quot;You are logged out due to inactivity.&quot;)', 30000);
    });
  &lt;/script&gt;
  </code></pre>
  <p>Now, when I am in iFrame and doing something my main window alert still comes. Not sure how to reset the same timeoutID.</p>