Put this script in the head of your page:
Code:
<script type="text/javascript">
function highlight(x){
document.forms[x].elements[0].select()
}
</script>
Then, in the body, you can use this link to highlight (select) text in a text box that is the first element of a form numbered 'x' (forms are seen by javascript as numbered on each page starting with 0):
Code:
<a href="javascript:highlight(x)">Select</a>
Using 0 in place of the red x, this would work on a text area in a form like this:
HTML Code:
<form>
<textarea rows="10" cols="10">
Put the text you want highlighted here
</textarea></form>
provided it is the first form on the page.
Bookmarks