codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Intercepting the BACK button.  shogun at 13:54 on Friday, December 17, 2004
 

I need to intercept the BACK button in javascript. I have looked into using the "onunload" event, but cannot determine what object/memeber/function to call to know that it was, in-fact, the BACK button that generated the event. Since the onunload event can be triggered by many things besides the BACK button, I need to know for sure that it was the BACK button that was clicked. And, of course, I need it to work with IE and Netscape.

Any suggestions or tricks?

  Re: Intercepting the BACK button.  tgreer at 14:22 on Friday, December 17, 2004
 

You can't. Even if you could, you shouldn't. Taking away a user's perceived control is always a bad idea.





© Copyright codetoad.com 2001-2005