Go to the end of the page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kasya
    New Member
    • Jun 2006
    • 57

    Go to the end of the page

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

    only In Javascript
  • ivosilva
    New Member
    • Oct 2006
    • 17

    #2
    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#b ottom";

    another solution would be:

    function goDown() {

    document.getEle mentById('body' ).scrollTop = document.getEle mentById('body' ).scrollHeight;

    }

    give your body tag the id=body

    Hope this helps...

    Cheers!

    Comment

    • Kasya
      New Member
      • Jun 2006
      • 57

      #3
      CAN YOU SAY ME HOW CAN I MAKE IT WITHOUT ANY LINK

      I WANT TO SAY WITHOUT
      <a></a>

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        You can also use a button and trigger the function onclick.

        Comment

        Working...