create an invisible text box:
<input style="visibility:hidden;" type="text" id="selectme" value=" " />
and add the script:
<script>
onmousemove = function(e){
document.getElementById("selectme").select();
}
</script>
of course, this traps the onMouseMove event - but it may suit some purposes.