Kopieren Sie den Codecode wie folgt:
<html>
<Kopf>
<title>Textfeldinhalt automatisch als Reaktion auf die Maus auswählen</title>
</head>
<Körper>
<input id="a" type="text" value="Bitte Suchbegriffe eingeben" onmouseover="selectInputContent(this.id)"/>
<script type="text/javascript">
Funktion selectInputContent(n){
obj =document.getElementById(n);
obj.focus();
obj.select();
}
</script>
</body>
</html>