復制代碼 代碼如下:
<html>
<head>
<title>響應鼠標自動選中文本框內容</title>
</head>
<body>
<input type="text" value="請輸入搜索詞"/>
<script type="text/javascript">
function selectInputContent(n){
obj =document.getElementById(n);
obj.focus();
obj.select();
}
</script>
</body>
</html>
新聞熱點
疑難解答
圖片精選