HTML:Highlight select html textarea contents
Monday, June 30th, 2008<script type=”text/javascript”>
if (document.forms["form_id"] && document.forms["form_id"].data) {
document.forms["seofilter"].data.select();
}
</script>
this should be put after the form or near </body> because form may not be accessible.
In this example the textarea has name ‘data’.