Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Click on back button problem

 
JayaSiji Gopal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a jsp page, with two links:

Help
Back - On this link, i have the history.back(-1) function.

If a user clicks on 'Help' and then clicks on 'Back', the control goes back to the Help page, instead of the previous jsp page.

Requirement is If the user clicks on 'Back', after clicking on 'Help', how can i clear the help page from the memory, to take the user back to the previous jsp page.

Any ideas!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64713
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rather than relying on hacks like history.back, your web app should create true links with complete URLs for all navigable items.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic