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.










CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: Help on this program
•  Compiler Error Message: CS0246: The type or namespace name `Acme` could not be found (are you missing a using directive or an assembly reference?)
•  Re: A few beginner questions (compiler recs, resources, etc)
•  Re: how to aggregate the hourly
•  bandwith monitor
•  Re: stripping characters from variable
•  Auto populating dates in form to Database
•  Re: Overflow: Scroll - Back to Top
•  Re: C++ Beginner question


Recent Articles
Multiple submit buttons with form validation
Understanding Hibernate ORM for Java/J2EE
HTTP screen-scraping and caching
a javascript calculator
A simple way to JTable
Java Native Interface (JNI)
Parsing Dynamic Layouts
MagicGrid
Caching With ASP.Net
Creating CSS Buttons


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2005