Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTML AND Servlets (V V Urgent )

 
ninad parkhi
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi to all ,
Can any one tell me how to trap BACK and FORWARD buttons of Web Browser........
Pl treat this with urgency

Regards

 
prabhat kumar
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use javascript ..
window.history.back();
and
window.history.forward();
 
ninad parkhi
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks prabhat................
ninad
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That still won't trap it, will it? I don't think (or hope) that's possible.
- Peter
 
ninad parkhi
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Peter,
You are right !!!
But I did it using Servlet headers.
Thanks to our friends of Java Ranch
bye
ninad
 
ninad parkhi
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Peter,
You are right !!!
But I did it using Servlet headers.
Thanks to our friends of Java Ranch
bye
ninad
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic