Log in

View Full Version : Go to bottom...


Boofo
06-15-2002, 10:00 PM
Can anyone please tell me what javascript code I could use to go to the bottom of the screen? I know the one to go Back to the Top, but it uses the screen location 0,0 and with screens being different resolutions, what would I need to use that would cover them all?

Velocd
06-15-2002, 11:50 PM
I don't know javascript very well, but if it were anything like some C++ coding, you could probably use some type of function to figure out the max-width and max-height of a browser screen then go from there.

Boofo
06-16-2002, 12:56 AM
Is there just a simple way to do this? I don't have to have javascript, if there is another easier way to do it. :)

TECK
06-16-2002, 06:08 PM
place this code anywhere in your page:<a href="#bottom">test</a>place this code where you want the link to point (in the same page):<a name="bottom"></a>you can have as many links like that as you want on a page... just change the name.

Boofo
06-16-2002, 08:42 PM
I guess I'm confused here. What is the word test for? And how would I link it? :) Sorry to sound so dense, but I want to get it right. :)

Originally posted by nakkid
place this code anywhere in your page:<a href="#bottom">test</a>place this code where you want the link to point (in the same page):<a name="bottom"></a>you can have as many links like that as you want on a page... just change the name.

TECK
06-17-2002, 03:18 AM
place this code on a html page full of text.. at least 2 pages long (first code segment at the top, 2nd at the bottom), click on the "test" link and see what's happening.

Boofo
06-17-2002, 07:23 AM
Will this work if I put it in the header and footer templates?

TECK
06-17-2002, 08:29 AM
yes.