NetTalk Central

Author Topic: Making "focus" work in a nested popup  (Read 127 times)


  • Full Member
  • ***
  • Posts: 249
  • Expert on nothing with opinions on everything.
    • View Profile
    • Email
Making "focus" work in a nested popup
« on: April 28, 2022, 10:32:31 AM »
My problem was an input field on a form nested several popups deep.  I wanted the field to have focus when the form opened but it wasn't working.

This is a follow-up to Bruce's help on today's webinar.

1. We were fooling ourselves in the console.  The console itself grabs focus, so typing
actually DID work, but one needed to click back into the browser part of the screen for it to take effect.  (Unlike the .hide() and .show() commands).

2.  I guess "timing is everything".  I tried moving the focus() command to inside the embed that is inside the $(document).ready function and now it works!  (pic).  Apparently what I tried previously was firing too early.

Thanks, all.



  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10733
    • View Profile
Re: Making "focus" work in a nested popup
« Reply #1 on: April 30, 2022, 12:23:53 AM »
ahh =- thanks for the feedback Jane - makes sense...