HTML question: Going to an anchor on loading page

ronnie gauthier ronnieg
Mon May 17 11:39:04 PDT 2004


Sure it'll work. But, since you are building the pages by scripts and
have complete layout control why not just put the desired content first
and feed the page?


On Sun, 20 Oct 2002 02:23:28 -0400
Joel Hammer <Joel at HammersHome.com> wrote:

>Thanks. That sounds like it will work. But, I'll won't try it until
>tomorrow morning.
>
>Joel
>
>
>On Sun, Oct 20, 2002 at 01:08:33AM -0500, ronnie gauthier wrote:
>> When you generate the page save it to file in a tmp folder with a
>> unique name (r5j43cu8.html). Feed the browser a Location header
>> pointing to the file with the anchor in the url.
>> 
>> $go_to = "http://domain.com/tmp/r5j43cu8.html#you_are_here";
>> 
>> print "Location: $go_to","\n\n";exit(0);
>> 
>_______________________________________________
>Linux-users mailing list
>Linux-users at linux-sxs.org
>Unsubscribe/Suspend/Etc ->
>http://www.linux-sxs.org/mailman/listinfo/linux-users


More information about the Linux-users mailing list