Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Pathetic Question That Needs An Answer
Old 06-14-2003, 09:29 AM Pathetic Question That Needs An Answer
SmokingTequila's Avatar
Master of Disaster

Posts: 344
Location: Richmatic
Trades: 0
What would be the HTML code if I wanted to make www.blahblah.com redirect to www.blahblah.biz?
__________________
I might leave in a bodybag, but never in cuffs.
SmokingTequila is offline
Reply With Quote
View Public Profile Visit SmokingTequila's homepage!
 
 
Register now for full access!
Old 06-14-2003, 03:45 PM
RedMage's Avatar
Average Talker

Posts: 27
Location: ROY UTAH USA
Trades: 0
HTML cannot do that but JavaScript, PHP and other server-side languages can.

Here's a JavaScript example:
Code:
<SCRIPT>
 parent.top.location.href = "http://www.blahblah.biz";
</SCRIPT>
Add that between the "<HEAD>" tags in your HTML file, change th http://www.blahblah.biz to whatever you want and your done.

That code will redirect the page immediately, typically befor any body content is displayed.
RedMage is offline
Reply With Quote
View Public Profile
 
Old 06-14-2003, 04:49 PM
The Crow's Avatar
SHOW

Posts: 1,521
Location: USA
Trades: 0
smoking,
This is a meta refresh.
<META HTTP-EQUIV="REFRESH" CONTENT="01; URL=home.html">
Put this between your title and /head.
the 01 is one second. change the url to where you want it to go.
This should work for you.
Crow
The Crow is offline
Reply With Quote
View Public Profile
 
Old 06-14-2003, 06:32 PM
RedMage's Avatar
Average Talker

Posts: 27
Location: ROY UTAH USA
Trades: 0
I lied, HTML can do that [o:

Thanks, The Crow
RedMage is offline
Reply With Quote
View Public Profile
 
Old 06-15-2003, 08:58 AM
conkermaniac's Avatar
The Nutty Moderator

Posts: 1,012
Location: China
Trades: 0
Quote:
Originally posted by The Crow
smoking,
This is a meta refresh.
<META HTTP-EQUIV="REFRESH" CONTENT="01; URL=home.html">
Put this between your title and /head.
the 01 is one second. change the url to where you want it to go.
This should work for you.
Crow
I recommend setting content to 0 if you want an automatic redirect, but if you want to include a message such as: "Hold on while you are being redirected to...", I would recommend setting content to 5 or 6.
__________________

Please login or register to view this content. Registration is FREE
- Affordable feature-packed remotely hosted message boards!
conkermaniac is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Pathetic Question That Needs An Answer
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14995 seconds with 12 queries