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

Discussion in 'ASP .Net' started by Guest, Mar 6, 2006.

  1. Guest

    Guest 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
    Guest, Mar 6, 2006
    1. Advertisements

  2. Guest

    Terry Burns Guest

    the textbox must have the focus to type into it
    Terry Burns, Mar 6, 2006
    1. Advertisements

  3. 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 Goldin, Mar 6, 2006
  4. Guest


    May 8, 2013
    Likes Received:
    You have mentioned as use (onblur="self.focus()") to disable minimize button. But when I tried, I found that it is applicable only for once and when I click next time it is getting minimized. Can any1 please help me on this.
    sharmaps24, May 8, 2013
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.