Set TextArea to be Active : TextArea : Form Control : JavaScript DHTML examples (example source code) Organized by topic

JavaScript DHTML
C++
PHP
JavaScript DHTML Home »  Form Control   » [  TextArea  ]   
 



Set TextArea to be Active

Please note that some example is only working under IE or Firefox.

    
<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>

    
      
      
Related examples in the same category
1.  Textarea rows
2.  Is TextArea Multiline
3.  TextArea type
4.  TextArea wrap
5.  TextArea Columns Example
6.  TextArea 'value'
7.  Select the text in text area
8.  Auto type textarea
9.  Not empty TextArea
10.  Methods and Properties of the Textarea Object
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.