Page 1 of 1
Autofocus with a form within an Iframe
Posted: Thu Mar 12, 2020 10:46 am
by MullGen
I created a form on a page and the autofocus works correctly. Placing the page within an Iframe and the autofocus does not work.
The page is placed within the Iframe by clicking on a menu item if that makes a difference.
All help much appreciated.
Ian
Re: Autofocus with a form within an Iframe
Posted: Thu Mar 12, 2020 10:52 am
by Pablo
'auto focus' is a standard HTML functionality which is implemented in the browser.
So, you have no control over how it works via HTML.
But this may be helpful:
https://bugzilla.mozilla.org/show_bug.cgi?id=1272328
Re: Autofocus with a form within an Iframe
Posted: Thu Mar 12, 2020 11:32 am
by MullGen
Thanks Pablo. Worked perfectly up until recently so something must have changed and it was not my code.
Going to have to look for an alternative to Iframe I guess.
Re: Autofocus with a form within an Iframe
Posted: Mon Mar 16, 2020 3:18 pm
by MullGen
Looks like there is no solution and many are searching for a solution.
I cannot be alone in trying to setfocus to an Editbox within a form with an iframe.
Best regards,
Ian
Re: Autofocus with a form within an Iframe
Posted: Mon Mar 16, 2020 3:40 pm
by Pablo
Note that this is unrelated to WWB. This is standard HTML functionality, only the browser has control over how it works.
Re: Autofocus with a form within an Iframe
Posted: Thu Mar 19, 2020 5:32 pm
by MullGen
Thanks Pablo.
I now understand that it is nothing to do with WWB.
It would be just great to find some code /script that overcomes this issue.
Keep up the good work. Stay safe and stay well.
Ian
Re: Autofocus with a form within an Iframe
Posted: Thu Mar 19, 2020 11:10 pm
by BaconFries
Take a look at the following urls from Google...read the link's from experts-exchange. Note this is for information only no guarantee any of the codes given will work... trial and error
https://www.google.com/search?safe=acti ... 60&bih=699