automatically jump to another page

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
raydona
Forum Newbie
Posts: 21
Joined: Sat Mar 21, 2009 9:17 am

automatically jump to another page

Post 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.
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Re: automatically jump to another page

Post 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...
Post Reply