469,293 Members | 1,493 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,293 developers. It's quick & easy.

Go to the end of the page

57
Who Can Say Me How Can I Go To End Of Page In Javascript

only In Javascript
Nov 10 '06 #1
3 3468
Hy Kasya,

one solution would be placing an anchor at the bottom of your page like this:

<a id="bottom" name="bottom"></a>

and in javascript call:

window.location.href = "yourpage.asp#bottom";

another solution would be:

function goDown() {

document.getElementById('body').scrollTop = document.getElementById('body').scrollHeight;

}

give your body tag the id=body

Hope this helps...

Cheers!
Nov 10 '06 #2
Kasya
57
CAN YOU SAY ME HOW CAN I MAKE IT WITHOUT ANY LINK

I WANT TO SAY WITHOUT
<a></a>
Nov 11 '06 #3
acoder
16,027 Expert Mod 8TB
You can also use a button and trigger the function onclick.
Nov 27 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Nathan | last post: by
2 posts views Thread by James | last post: by
4 posts views Thread by Kevin Phifer | last post: by
2 posts views Thread by John Lau | last post: by
6 posts views Thread by MooreSmnith | last post: by
1 post views Thread by Lenard Gunda | last post: by
8 posts views Thread by Ed Jay | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.