Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #13251

Re: Event Bubbling: Bubble, Bubble, Toil, and Trouble

Newsgroups comp.lang.javascript
Subject Re: Event Bubbling: Bubble, Bubble, Toil, and Trouble
From "Evertjan." <exjxw.hannivoort@interxnl.net>
References <497sn7hj3iepoc4r9940di8l10ed8bvhl6@4ax.com>
Message-ID <XnsA02D8991BD86eejj99@194.109.133.133> (permalink)
Date 2012-04-05 22:50 +0000

Show all headers | View raw


Gene Wirchenko wrote on 06 apr 2012 in comp.lang.javascript:

>     I have added onfocus and onblur clauses to my page's <body> tag,
> but the events rarely fire.  I have the event code add a line to the
> innerHTML of a debug out table element.

The body is a strange entity, 
as you will have noticed during puberty.

<body onblur='alert(1)' onfocus='alert(2)'>
will see strange behavour.

Blurring by clicking another window will do as expected,
but clicking the alert after that dismisses the onfocus action.

Blurring by minimising remaximizes the window to show the alert [chrome],
so is a nasty experience for the casual user.

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Event Bubbling: Bubble, Bubble, Toil, and Trouble Gene Wirchenko <genew@ocis.net> - 2012-04-05 15:36 -0700
  Re: Event Bubbling: Bubble, Bubble, Toil, and Trouble "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-04-05 22:50 +0000
  Re: Event Bubbling: Bubble, Bubble, Toil, and Trouble Matt McDonald <matt@fortybelow.ca> - 2012-04-05 20:57 -0600
    Re: Event Bubbling: Bubble, Bubble, Toil, and Trouble Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-04-06 22:22 +0200

csiph-web