Hi,
I have a web form with RadEditor and input text,I want to put the cursor in the text input, so i use this code from http://www.telerik.com/help/aspnet-ajax/editor_setfocus.html
It's OK with Forefox or chrome , but not work with IE 8
I have a web form with RadEditor and input text,I want to put the cursor in the text input, so i use this code from http://www.telerik.com/help/aspnet-ajax/editor_setfocus.html
<body onload="SetFocusOnTextBox();"> <form id="form1" runat="server"> <asp:ScriptManager id="ScriptManager" runat="server"/> <telerik:radeditor runat="server" ID="RadEditor1"> <Content> Here is sample content! </Content> </telerik:radeditor> <input type="text" id="text"/> <input type="button" value="Set Focus On RadEditor" onclick="SetFocusOnRadEditor()" /> <script type="text/javascript"> function SetFocusOnRadEditor() { var editor = $find("<%=RadEditor1.ClientID%>"); //get a reference to RadEditor client object editor.setFocus(); //set the focus on the the editor } function SetFocusOnTextBox() { var editor = $get("text"); //get a reference to the input textbox with id text editor.focus(); //set the focus on the the textbox } </script> </form></body>It's OK with Forefox or chrome , but not work with IE 8
