Page 1 of 1

automatically jump to another page

Posted: Wed Apr 08, 2009 2:23 pm
by raydona
Hi,
A link such as:
<a href="somefile.htm"> Click here</a>
requires the user to click the text “Click here” to jump to the link. How can I get the page, at the end of a routine, to jump to another page automatically, without requiring the user to click anything? Many thanks for your help.

Re: automatically jump to another page

Posted: Thu Apr 09, 2009 3:45 am
by n00b Saibot
A straightforward solution would be to do something like:

Code: Select all

<script>location.href = 'somefile.htm';</script>
But then again, can I ask why the redirect? I sense AJAX can be put to good use here...