[web] Self Activating Link for Relaying

Started by
3 comments, last by jflanglois 19 years, 5 months ago
I know this must be pretty basic, but I'm having a tough time because I am in such a hurry! How do you create an HTML link that will activate as soon as the file is called? When I sent out the demo of our game, I hard-coded the link to our shopping cart in there. Unfortunately, that link has changed, so now I need to call the old "store.cfm" file, but I need that file to just contain a link that will automatically relay off to the correct new address for our shopping cart. Obviously, the best solution would be to change the link in my demo, but many copies of the demo are already out there, so that won't help. Any help would be greatly appreciated! Thanks,
Mark TempleEnemy Technology"We have found the enemy, and he is us!"
Advertisement
If you're using a scripting language you can use the "Location:" HTTP header. Otherwise use <meta http-refresh= ... > or
<script language="&#106avascript">document.location.href=url;</script>
A non-js way is to put <meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/index.html"> (source) in the head section of your html page with the number being the amount of seconds to wait and the url the target page.

[edit]
Quote:"We have found the enemy, and he is us!"
Where does that come from again?

Regards,
jflanglois
Thanks for the help!!

I'm not exactly sure who first said that, but you can be sure he wasn't having a very good day!
Mark TempleEnemy Technology"We have found the enemy, and he is us!"
No problem.

It sounds like the sort of thing that Terry Pratchett would write.

Regards,
jflanglois

This topic is closed to new replies.

Advertisement