Sign in to follow this  
mtemple

[web] Self Activating Link for Relaying

Recommended Posts

mtemple    115
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,

Share this post


Link to post
Share on other sites
fractoid    703
If you're using a scripting language you can use the "Location:" HTTP header. Otherwise use <meta http-refresh= ... > or
<script language="javascript">document.location.href=url;</script>

Share this post


Link to post
Share on other sites
jflanglois    1020
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this