When the mouse over the text box automatically selected the input box content of the JS code to share
2020-03-30 00:00:09
OfStack
<html>
<head>
<title> Response to the mouse automatically selects the text box content </title>
</head>
<body>
<input id="a" type="text" value=" Please enter the search term " onmouseover="selectInputContent(this.id)"/>
<script type="text/javascript">
function selectInputContent(n){
obj =document.getElementById(n);
obj.focus();
obj.select();
}
</script>
</body>
</html>