Groups | Blog | Home
all groups > asp.net > march 2006 >

asp.net : Question about javascript -> onblur='self.focus'


joe
3/5/2006 11:16:26 PM
Question about javascript -> onblur='self.focus'

I use the method <body onblur='self.focus'> to keep the child browser always
on the top , it success, but the textbox inside the child browser can not
Terry Burns
3/6/2006 12:00:00 AM
the textbox must have the focus to type into it

--
Terry Burns
http://TrainingOn.net
[quoted text, click to view]

Eliyahu Goldin
3/6/2006 12:00:00 AM
Because body.focus() removes focus from any focusable element inside the
body. And as soon as you try to set focus on any element, onblur event fires
and pulls the focus back to body.

Eliyahu

[quoted text, click to view]

AddThis Social Bookmark Button