Path: csiph.com!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Mel Smith" Newsgroups: comp.lang.javascript Subject: 'onblur' problem Date: Mon, 18 Mar 2013 12:55:40 -0700 Lines: 31 Message-ID: X-Trace: individual.net x+pPcdv2HSFe2nuNTZ9v9ArNQrD2QWn+xercpwGNQRDoA+QAt0 Cancel-Lock: sha1:/Q0Gtbu1S/TY2aVF7yAXoEklJUY= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: csiph.com comp.lang.javascript:18936 HI: I have a ...several options here ... Normal Operation: If the user fails to 'select' one of the several options in the element. I do this until he 'selects' one of the options. Works good ! Problem Operation (at least for IE8) : If the user clicks the 'X' (eXit the browser) button in the top-right corner *before* selecting an option, my IE8 browser senses the 'onblur' event and shows the alert message -- even though by that time the browser has already shutdown. Very messy of me to allow this. Question: How can I sense that the user is simply closing down the browser, and stop the onblur event from presenting the alert() message. Thank you. -- Mel Smith