Martin Honnen <ma*******@yahoo.de> wrote in message news:<40********@olaf.komtel.net>...
Stefano wrote:
i want set focus element with element.focus()
but i have always this exception: "focus() is not a function"
I use Mozilla
What kind of element is that? It should work for form controls (input,
textarea, select).
paragraph, inline object (bold,italic...), i think that these elements
aren't supported by focus().
Is it true?
Well, a paragraph element in a normal HTML document can't have focus,
neither by user action nor by script.
Or are you having an editable iframe?
Yes, i have an editable iframe, i am writting an wysawyg editor
but i don't use "ExecCommand". I want that if user clicks "bold"
button of editor (for example), my editor inserts or removes an
element "B".
My problem is: How can i do for insert an element ? i have tried with
range.insertNode(newc) but newc is empty (because user is writting)
and doesn't insert in a DOM.
Excusme for my English...
Thank for your help.
Stefano