Redirect a page for a specific time peroid
<p>I am trying to create a 302 redirect which waits for 18 seconds after redirecting and then goes back to the parent page. </p>

<p>Here is what I have done,</p>

<pre><code>&lt;script type='text/javascript'&gt;
(function (){
 if (document.cookie.indexOf(welcomeCookie) != -1 ||
     document.cookie.indexOf(dailyWelcomeCookie) != -1
 ){
    document.cookie="toURL"+ "=" +escape(document.URL)+";path=/; domain=.forbes.com";
    document.cookie="refURL"+ "=" +escape(document.referrer)+";path=/; domain=.forbes.com";
    this.location="http://www.forbes.com/fdc/welcome_mjx.shtml";
 })();
&lt;/script&gt;
</code></pre>
