after a little more digging, it looks like they are trapping the onbeforeunload event and returning a string "are you sure?" var, which then it looks like gets inserted to the browser template that seems to be "you are about to navigate away from this page." <new line> <message returned by trapping onbeforeunload event> "Click Ok to continue, or cancel to stay on current page."
thanks for the response... On 1/11/07, Mark Renn Caluag <[EMAIL PROTECTED]> wrote: > > i believe they're using onunload > > On 1/12/07, Brian Dinsmore <[EMAIL PROTECTED]> wrote: > > > > upong clicking on the X to either close the tab or window in every > > browser, gmail gives me a confirm close message asking me whether or not I > > would like to navigate away from the current page that I am on, or cancel, > > and remain on the current page. does anyone know how they do this? > > > > > > thanks! > > > > brian dinsmore > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
