This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

go to Top page

 
anamika bansal
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have used <a name="top"/> and <a href="#top">Go to Top<a> ,to go to top of the jsp page but problem what i am facing is that all the data entered by the user before clicking on the link (Go to Top) gets removed or flushed or you can say page is getting refreshed.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here are some tips on scrolling with JavaScript. Are you comfortable with making a link or button run some script?
 
anamika bansal
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the code.Its working fine according to my requirement
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic