Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Old 09-04-2009, 02:13 PM   #1 (permalink)
Junior Member
 
Join Date: 08-10-09
Posts: 7
iTrader: 0 / 0%
Latest Blog:
None

Flaura78 is liked by many
Thumbs down JAvascript redirect code

Hi, has anyone got a simple html code for redirect?

I mean one that does the job quickly with 0 timeframe and you don't have to put 5 codes in the body.

TY.
Flaura78 is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-04-2009, 08:03 PM   #2 (permalink)
Contributing Member
 
claire0917's Avatar
 
Join Date: 07-27-09
Posts: 110
iTrader: 0 / 0%
Latest Blog:
None

claire0917 is liked by many
try window.location = 'newPage.html';
claire0917 is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-05-2009, 11:54 AM   #3 (permalink)
Member
 
Join Date: 09-05-09
Posts: 36
iTrader: 0 / 0%
Latest Blog:
None

Cabloo is liked by many
Few things.
One: Meta tags:
<meta http-equiv="refresh" content="1;URL=http://thecsports.com/" /> (replace 1 with how many seconds of wait time before transfer.)
Two: Javascript:
<script type="text/javascript">window.location.href = 'http://thecsports.com/'</script>
(.href provides more browser safe javascript, but I wouldn't suggest javascript for this anyway. If someone has javascript disabled then they don't get redirected.)
Three: PHP:
header("Location: http://thecsports.com/");
Cabloo is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-08-2009, 03:32 PM   #4 (permalink)
Junior Member
 
Join Date: 08-10-09
Posts: 7
iTrader: 0 / 0%
Latest Blog:
None

Flaura78 is liked by many
Quote:
Originally Posted by Cabloo View Post
Few things.
One: Meta tags:
<meta http-equiv="refresh" content="1;URL=http://thecsports.com/" /> (replace 1 with how many seconds of wait time before transfer.)
Two: Javascript:
<script type="text/javascript">window.location.href = 'http://thecsports.com/'</script>
(.href provides more browser safe javascript, but I wouldn't suggest javascript for this anyway. If someone has javascript disabled then they don't get redirected.)
Three: PHP:
header("Location: http://thecsports.com/");
TY, the Meta tags work perfectly... Even I could do it! Thanks.
Flaura78 is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply

Tags
code, redirect, website


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Encrypt Javascript - Secure Your Javascript Code ZunuZunu Services 7 03-09-2009 01:55 PM
Redirect code with frames lexus80 Coding Forum 3 01-12-2009 12:39 PM
PHP Redirect Code 2939195631902 Coding Forum 6 12-24-2008 12:00 PM
Page Redirect Code Red devil SEO Forum 3 10-30-2007 07:20 AM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 07:27 PM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.