[IPython-User] Untitled notebooks

Cameron Hayne cameron.hayne@dftmicrosystems....
Tue Jan 24 22:07:37 CST 2012


On 24-Jan-12, at 5:09 PM, Brian Granger wrote:

> Browsers don't really let you do anything significant upon closing a
> window.  For example, you can't pull up a dialog asking the user if
> they want to save/delete the notebook.  That constraints us on this
> point.

I'm a near-novice with JavaScript, but I think I've experienced web  
sites where they seemed to detect that I was closing the browser window.
And here's a web page that seems to describe how to do it:
http://chrismckee.co.uk/good-sir-before-you-unload-crossbrowser-javascript-headaches/

--
Cameron Hayne
hayne@sympatico.ca






More information about the IPython-User mailing list