Question about javascript -> onblur='self.focus'

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
type anything, why
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top