Hello !
I can't set the focus on the textarea when my page loaded.
I'm using IE6, FF3.6.8 or Chrome 5...
What's wrong ?
Thanks in advance.
xoubi
I can't set the focus on the textarea when my page loaded.
I'm using IE6, FF3.6.8 or Chrome 5...
<fieldset style='padding-top: 10px;'> <legend>Détail du message </legend> <textarea id='ajouteMessageTA' name="data[Message][contenu]"><?php echo $message_contenu;?></textarea> <script type="text/javascript"> if (CKEDITOR.instances['ajouteMessageTA']) { CKEDITOR.remove(CKEDITOR.instances['ajouteMessageTA']); } this.editor = CKEDITOR.replace( 'ajouteMessageTA' ); // this.editor.focus; ==> does not work //CKEDITOR.instances['ajouteMessageTA'].focus(); ==> does not work //CKEDITOR.instances.ajouteMessageTA.focus(); ==> does not work //$('ajouteMessageTA').focus(); ==> does not work //ajouteMessageTA.focus(); ==> does not work </script> </fieldset>
What's wrong ?
Thanks in advance.
xoubi
Re: Set focus on load ??
Re: Set focus on load ??
Re: Set focus on load ??
StartupFocus doesn't work in enabling or disabling cursor focus.
I'm trying to disable to cursor focus to the browser loads at the top of the page instead of at the middle where the editor is. Nothing has worked and nothing has responded.