Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » Redirect with a pause


Redirect with a pause

Reply
  #1 (permalink)  
Old 11-17-05, 10:14 PM
msoucy msoucy is offline
Newbie Coder
 
Join Date: Apr 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Question Redirect with a pause

I want to display a page with a brief message that I want the user to be able to read and then redirect to a different page. Is this possible? Can anyone please tell me how to do this? Any help would be greatly appreciated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 11-18-05, 03:17 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,074
Thanks: 11
Thanked 88 Times in 83 Posts
The "5" is the time in seconds it wil take till the browser redirects, and "the_other_page.htm" is the page where the brower will redirect to!
(You can change these values of course)

Code:
<meta http-equiv="refresh" content="5;URL=the_other_page.htm">
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 11-18-05, 10:18 PM
msoucy msoucy is offline
Newbie Coder
 
Join Date: Apr 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
So all I have to do is put this piece of HTML code in my web page? There is no fancy Javascript required?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 11-19-05, 03:05 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,074
Thanks: 11
Thanked 88 Times in 83 Posts
Nah, just put this somewhere between the <head> tags!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 11-20-05, 08:36 PM
msoucy msoucy is offline
Newbie Coder
 
Join Date: Apr 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks!

Thanks, I'll have to give it a try.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 04-03-09, 11:20 AM
Bizsouth Bizsouth is offline
New Member
 
Join Date: Apr 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Pause

I have attempted to find out how to do this "pause redirect" EXCEPT do it from the actual site, not the code. I have seen it done this way, where there is two text boxes on the site with no "submit" button or any thing else, just the boxes. The owner had typed in the name and destination URL. Therefore he could change any time he wanted to w/o reprogramming.
Glenn

PS I just thought I would go to the site and put in url and see if it would work if I entered a URL, It didn't so he must have to program it every time he changes it.(?) The site: health-schools.blogspot***/ URL text box is blank. health-schools.blogspot***/2009/02/relief-from-pain****, this one has a URL in text box but its the same as site so neither are set to pause/redirect right now.

***=dotcom
****=.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #7 (permalink)  
Old 07-02-09, 09:08 AM
ghalt ghalt is offline
New Member
 
Join Date: Jul 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
So...if I just add, say, 5 seconds to my refresh statement in the header, will my Google Analytics javascript code have time to execute? Or will it not execute because the script is in the body and the redirect is in the header?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #8 (permalink)  
Old 07-05-09, 09:37 PM
ruteckycs's Avatar
ruteckycs ruteckycs is offline
Coding Addict
 
Join Date: Jul 2009
Posts: 377
Thanks: 6
Thanked 10 Times in 10 Posts
Google Analytic will count it, the redirect starts counting from AFTER the entire page loads, including JS, so if you put in 3 seconds , it will count 3 seconds AFTER the entire page is loaded, including all Google JS, and then redirect.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
variables lost on redirect? lordy PHP 5 06-01-05 08:09 PM
Tempopary Redirect user to a Sponsor Ad green07 PHP 3 04-24-05 11:58 AM
Login Redirect Jig0901 ASP.NET 2 04-17-05 05:40 AM
Redirect Script. RossC0 JavaScript 2 02-10-05 06:02 AM
Redirect previous 2 pages after login mcrob PHP 5 01-01-05 08:35 AM


All times are GMT -5. The time now is 07:03 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.