Home: htmlArea 3 (beta): htmlArea 2 & 3 archive (read only): htmlArea v3.0 - Discussion:
HTMLarea steals focus

New User

Oct 5, 2004, 4:07 AM

Views: 34746
HTMLarea steals focus


I use htmlArea in a big form somewhere half way in the form. The problem is that when you load the form... html area will steal the focus nomather how much I try to give it to the first element of the form. This is a pain, cause the form will scroll to the place where HTML area is instead of just beginning at the begin of the form.

Any solution?


(This post was edited by gurk on Oct 5, 2004, 4:08 AM)

New User

Oct 5, 2004, 9:16 AM

Views: 34722
Re: [gurk] HTMLarea steals focus

Ok I found the solution that gives the focus back to the first element of the form:

switch (this._editMode) {
case "wysiwyg" :
//Removed: this._iframe.contentWindow.focus(); And changed in:

New User

Feb 9, 2005, 7:29 AM

Views: 34437
Re: [gurk] HTMLarea steals focus

i've tried your solution but now i can't insert images.

i've tried comment in function generate()

and still not workin. any help??? thx

(This post was edited by dawwwid on Feb 17, 2005, 3:24 AM)

New User

Feb 13, 2005, 3:26 PM

Views: 34371
Re: [dawwwid] HTMLarea steals focus

I would like to see a solution for this also... Gurks solution causes buttons like bold not to work correctly.