全选择
这里有一些简单的文本,当你按下上方的全选择连接后,输入框内的内容不但会全选择,而且内容已经复制到你的剪贴板内了!
1.将下面的代码复制到 <head> 内
<style> .highlighttext{ background-color:yellow; font-weight:bold; } </style> <script language="Javascript"> </script>
2.将下面的代码复制到 <body>
<form name="test"> <a class="highlighttext" href="javascript:HighlightAll('test.select1')">Select All</a><br> <textarea name="select1" rows=10 cols=35 >This is some text. This is some text. This is some text. This is some text.</textarea> </form>