Suppose I have an iframe in which I have set its document's designMode to
on. Is there a way to programatically give focus to that frame and allow
the user to type afterwards?
In IE 6 and Firefox 2.0, this works:
frames['the_id'].focus();
In Opera 9.00, after calling that code keyboard events (keypress, keydown)
from the frame's document is registered, however no key appear there when
a user types (the typing cursor/caret doesn't show up either).
example: http://agro.web.ugm.ac.id/operabug/operabug.htm
Thanks a lot
I don't know enough JavaScript to offer a workaround (apart from clicking
in the textarea to focus it...). I can can tell you though that the
testcase works as you want in my Kestrel (next big Opera release) build.
--
Rijk van Geijtenbeek
Opera Software ASA, Documentation & QA
Tweak: http://my.opera.com/Rijk/blog/