Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > HTML, XHTML and CSS

Closed Thread
 
LinkBack Thread Tools
Old March 3rd, 2004, 06:45 PM   #1
New Member
 

Join Date: Dec 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 liquid is on a distinguished road
redirect code?

i need some html code to redirect people to another page.

thanks,
steve
liquid is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old March 3rd, 2004, 07:21 PM   #2
WebForumz Admin Badge
 

Join Date: Jul 2003
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 118 Webforumz Staff is on a distinguished road
Code:
<meta http-equiv="refresh" content="2;url=http://www.webforumz.com/">
2 is a 2 second delay before redirection, set it to 0 for instant
Webforumz Staff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old March 3rd, 2004, 09:42 PM   #3
WebForumz Member
 

Join Date: Oct 2003
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 jamslam is on a distinguished road
hmmm catalyst i'm not sure what you were thinking.. hehe.. here's the correct way:

Code:
<meta http-equiv="refresh" content="2;url=http://www.webforumz.com">
and just like catalyst mentioned, 2 is the number of seconds in which it will wait until it redirects to the specified url.
jamslam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old March 3rd, 2004, 11:27 PM   #4
WebForumz Admin Badge
 

Join Date: Jul 2003
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 118 Webforumz Staff is on a distinguished road
LOL, the redirecting code on here is messing with things.

anyway, it should be
Code:
<meta http-equiv="refresh" content="2;url = ht tp://ww w.webforumz.com">
without the extra spaces of course
Webforumz Staff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old March 4th, 2004, 04:21 AM   #5
Highly Reputable Member
 

Join Date: Jul 2003
Location: Ipswich, UK
Posts: 686
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Smokie will become famous soon enough
Code:
<script language=javascript>
window.location.href='page.asp';
</script>
Smokie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old March 4th, 2004, 06:05 AM   #6
WebForumz Admin Badge
 

Join Date: Jul 2003
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 118 Webforumz Staff is on a distinguished road
But that won't work if Javascript is disabled Smokie... The other method will always work.
Webforumz Staff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old March 4th, 2004, 08:58 AM   #7
WebForumz Member
 

Join Date: Oct 2003
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 jamslam is on a distinguished road
<blockquote id="quote"><font size="1" face="geneva, verdana, arial" id="quote">quote:<hr height="1" noshade id="quote">Originally posted by Catalyst

LOL, the redirecting code on here is messing with things.<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">
Hah! Sorry about that.. don't i feel like a fool :o

Anywho, yea you should always use the meta method, not the javascript method. (Or if you don't want meta tags, change the headers with php )
jamslam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Bookmarks

Tags
redirect , code


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

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
301 redirect nate2099 How is this done? 3 April 8th, 2008 06:20 AM
code behind code doesnt work skat .NET 4 February 18th, 2008 06:05 AM
live search code and styleswitcher code hebel JavaScript 0 May 12th, 2007 02:16 AM
Can somebody give me the code to hide the source code? renren JavaScript 7 March 7th, 2006 08:27 AM
redirect benbacardi PHP 1 April 28th, 2005 02:06 PM


Search Engine Optimization by vBSEO 3.2.0 RC8