Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a Web form that is very long so the vertical scrollbar shows up. OK!

 

When at the bottom of the Web page I want a button to jump to the top again and a button at the top to jump to the bottom.

 

How can this be done?

 

I can't find any way to access the vertical scrollbar properties.

Posted

this works with javascript!

 

<script language='javascript'>
function jsJumpTo(Marker)
{
window.location = "yourSite.aspx#"+Marker;
}
</script>

<input type="button" onclick="jsJumpTo(001);" value="to bottom">

text

text

text

text

text

text

text

text

text

text

text

text

text

text

text

text

text

text

<A NAME="001">Some HTML at bottom of your page

 

Regards

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...