<script type="text/javascript">
function SelectAll(id)
{
document.getElementById(id).focus();
document.getElementById(id).select();
}
</script>
<textarea style="width: 400px; height: 75px;" id="txtarea" onClick="SelectAll('txtarea');">
your shit
</textarea>