• Post Reply Bookmark Topic Watch Topic
  • New Topic

Method call before leaving the page  RSS feed

 
Tristan Van Poucke
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way to call a method just before leaving a page?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean a JavaScript method? I'm asking because this is the JSP forum.

If so, try adding onUnload and/or onBeforeUnload event handlers to the BODY tag.

If you didn't mean JavaScript, please clarify what you're trying to do.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!