[whatwg] When closing the browser

Ian Hickson ian at hixie.ch
Fri Dec 12 00:50:01 PST 2008

On Thu, 28 Feb 2008, ddailey wrote:
> The user opens a web application as one of many tabs in a web browser. 
> They then, either within the application window, accidentally hit CTRL W 
> (or its Mac equivalent), or from the operating system, issue a close 
> application command. Most apps (as opposed to the more "passive" 
> browsers) detect that new content has been developed and in is jeopardy 
> of being lost and therefore prompt the user to the status of this 
> possible data loss. The browser, unless I'm missing something, seems to 
> have a different status within the OS and just closes without ceremony.

I just went ahead and specced out the 'onbeforeunload' feature that most 
browsers support today that handles this case.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

More information about the whatwg mailing list