Web Design Forum  
 
Go Back   Web Design Forum > Web Software > Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 03-13-2005, 07:25 PM   #1 (permalink)
Bronze Member
 
Join Date: Jan 2005
Posts: 42
Default redirect html code

I am having trouble with redirecting a user to another page.
My code is as follows:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Redirecting</title>
<meta http-equiv="REFRESH" content="0;url=http://www.o-dating.co.uk"></HEAD>
<BODY>
Redirecting to <a href="http://www.o-dating.co.uk">www.o-dating.co.uk</a>
</BODY>
</HTML>
What am i doing wrong?
thanks
ehostingcomplete is offline   Reply With Quote
Old 03-13-2005, 08:01 PM   #2 (permalink)
Super Noob
 
zkiller's Avatar
 
Join Date: Aug 2004
Location: position:relative
Posts: 1,550
Send a message via AIM to zkiller Send a message via Yahoo to zkiller
Default

try changing the 0 to a 1. no clue why it's not working, the code looks fine. just thought that maybe a it's having problems with refreshing in less than 1 second. i doubt that is the problem though.
__________________
Stefan, the Post Master

Track Devil - May the boost be with you!
zkiller is offline   Reply With Quote
Old 03-13-2005, 10:35 PM   #3 (permalink)
Silver Member
 
Chroder's Avatar
 
Join Date: Aug 2004
Location: Toronto, Ontario
Posts: 194
Send a message via MSN to Chroder
Default

I tried it and it works fine for me.

Could be some sort of browser issue (they exist), so best to use Javascript as a backup.

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title>Redirecting</title>
    <meta http-equiv="refresh" content="0;url=http://www.o-dating.co.uk">
    <script language="javascript">
        window.location = 'http://www.o-dating.co.uk';
    </script>
</head>
<body>
Redirecting to <a href="http://www.o-dating.co.uk">www.o-dating.co.uk</a>
</body>
</html>
__________________
Chroder.com - My Blog
Chroder is offline   Reply With Quote
Old 04-30-2005, 01:01 PM   #4 (permalink)
New Member
 
Join Date: Apr 2005
Location: Sydney Australia
Posts: 6
Default

Could be a server setting. Maybe a security thing.

If it's still not working for you then try this:

<script type="text/javascript">
top.document.location.href = "http://something.com/page.htm";
</script>

that should do it.
__________________
Rimian Perkins
Web Developer. Sydney, Australia
rimian is offline   Reply With Quote
Old 05-16-2005, 04:53 AM   #5 (permalink)
New Member
 
Dmexio's Avatar
 
Join Date: May 2005
Posts: 17
Default

Try this...im sure it will work, you can change the delay from the "content" value i have it set to redirect after 5 seconds.

<html> <head>
<title></title>
<meta http-equiv="REFRESH" content="5; url=http://www.google.com">
</head>
<body> </body>
</html>


All the best
Dmexio is offline   Reply With Quote
Reply

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


All times are GMT. The time now is 05:31 PM.


Computer Forum - Internet Business - Webpage Design

 
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.