Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Trouble focusing to an iframe (Opera, designMode = on)

1 view
Skip to first unread message

Agro Rachmatullah

unread,
May 13, 2007, 1:42:54 AM5/13/07
to
I'm using Opera 9.20

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

Rijk van Geijtenbeek

unread,
May 15, 2007, 5:58:27 AM5/15/07
to

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/

0 new messages