I'm working on an ASP/HTML source code display and markup project. I would like to incorporate a button that selects all of the text in a textarea box, like I have seen in some of @tomic's MOD readme files.
Here is the code that is written in the pop-up window.<button onClick="javascript:this.form.S35.focus();this.form.S35.select();">Select All</button><br>
<textarea align="center" rows="33" name="S35" cols="47" readonly><!--#INCLUDE FILE="inc_sha256.asp"-->
<!--#INCLUDE FILE="inc_header.asp" -->
<!--#INCLUDE FILE="inc_func_member.asp" -->
</textarea>
When the button is pressed, nothing is selected. Any ideas?