Javascript to set focus

  •  08-27-2010, 3:12 AM

    Javascript to set focus

    I have a javascript to check the input item in the editor, if there is empty, it would set focus on the editor
    I tried to use
     
    var txt = document.getElementById('<%= Editor1.ClientID%>');
    txt.focus();
     
    or
     
    document.Editor1.focus();
     
    both are not success
View Complete Thread