View Full Version : Webpages

The Bursar
17-03-2005, 12:16:43
Is there any way to construct a webpage so that when loaded, it does not default to viewing the top lefthand corner of the canvas?

It seems to me that being restricted to any one start point is a waste of the potential of infinite canvas, but I don't know how to do otherwise.


17-03-2005, 12:22:13

17-03-2005, 12:23:15
most primitive and basic way to do it is to have an named anchor tag somewhere on the page and redirect to it.



The Bursar
17-03-2005, 12:32:10
Yeah, but is there a default anchor which would override the normal top-left start point. So that an index.html (or .php, whatever) would automatically jump to it, rather than it being explicitly in the URL?

The Bursar
17-03-2005, 12:46:55
Also, anchors don't work very well horizontally. If you move right, then the anchor drags the view to where the anchor enters the frame (from the right hand side) but if you move left, its goes to where it enters the frame from the left. Which is silly.

17-03-2005, 12:56:42
You can use onLoad javascript in the body tag to jump to a different anchor, or take the focus to an input field. I'm not sure if you can take the center of the page to a generic location on the window... never had any requirement to do that! :)

The Bursar
17-03-2005, 13:26:22
Oh yeah. onload will probably work well enough. Thanks.

19-03-2005, 12:34:28
What you're attempting to do is evil and I will help in no way whatsoever. ;)