On Thu, 17 Mar 2005 11:04:40 GMT, in comp.lang.javascript "Dag Sunde"
<me@dagsunde.com> wrote:
| Both refreshing (by pressing F5 or otherwise) a page, and
| navigating away from a page leads to onUnload() triggering.
|
| Is it possible to determine if the user is leaving the page
| for another, or simply pressed refresh?
If the user clicks on a link on *your* page then you can capture it.
If the user types an address in the url line or select a site from
Favourites then your out of luck.
---------------------------------------------------------------
jn******@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------