• Advertisement
Sign in to follow this  

[web] Self Activating Link for Relaying

This topic is 4847 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
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
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!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement