| Mick White 2004-08-26, 12:22 pm |
| Add the following (first) line to your javascript function:
if(!document.referrer){location.replace("startpage.html");return;}
Could be a problem, though. The user will not be able to sucessfully
bookmark page.
Mick
James Brown wrote:
> Hi there.
>
> I want to have a links on a page that takes a user forward and back through
> a presentation but if they have dropped into the middle of the presentation
> from another domain (search engine probably) then I want the 'back' link to
> send them to the home page.
>
> I can can do this is ASP/VB but it needs to be in javascript - can anyone
> help me with this?
>
> Regards
>
> James Brown
>
>
|