# Delayed Redirect

**URL:** <https://www.ruby-forum.com/t/delayed-redirect/181720>\
**Category:** Rails\
**Created:** [January 16, 2010, 11:24pm UTC](https://www.ruby-forum.com/t/delayed-redirect/181720 "2010-01-16T23:24:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tashfeen.ekram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ab097/32.png) [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Post date:** [January 16, 2010, 11:24pm UTC](https://www.ruby-forum.com/t/delayed-redirect/181720/1 "2010-01-16T23:24:47Z")

</div>

I want to create a page that when it opens it waits about five seconds  
and then redirects the user to another page. Is this normally done  
with JS? What is the easiest way to do this rails.

Thanks.

---

<div class="post-metadata">

**Author:** ![tashfeen.ekram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ab097/32.png) [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Post date:** [January 17, 2010, 2:19am UTC](https://www.ruby-forum.com/t/delayed-redirect/181720/2 "2010-01-17T02:19:13Z")

</div>

There’s actually an HTML meta tag that will handle redirects.

> **[HTML tips: Redirect to a new page](http://www.web-source.net/html_redirect.htm)**
>
> A variety of free cut and paste javascript code snippets.

Just change the content=“x” to 5 so it’ll indicate to the browser to  
wait 5  
secs before redirecting to the given address.

Regards,  
James

On Sun, Jan 17, 2010 at 11:22 AM, tashfeen.ekram
