in reply to •Re: Simulating internal anchors
in thread Simulating internal anchors
What I mean is that I want the page to load and immediately scroll to a point half-way down - as if it had been called via http with an internal anchor on the end of the URL.
My latest idea is to put some JavaScript at the bottom of the page thus:
<script language="JavaScript"> <!-- self.location.href='#ANCHOR'; //--> </script>
and use a regexp to replace "ANCHOR" with "fred".
Early indications are that this works - but - urgh! - JavaScript... A Perlier solution is still sought!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Re: •Re: Simulating internal anchors
by merlyn (Sage) on Dec 02, 2002 at 00:10 UTC |