Set TextArea to be Active : TextArea : Form Control JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Form Control » TextArea »

 

Set TextArea to be Active



    
<html>
<body>
<script language="JavaScript">
    function function1() {
        document.all.myTextArea.setActive();
    }
</script>
<textarea id="myTextArea">Some text</textarea>
<input type="button" 
       value='Insert the cursor inside the textarea
       onclick="function1();">
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Form Control
» TextArea