向连接小窗口中传递参数

a.htm-------------
<script>
window.showModalDialog("b.htm","actionname","dialogWidth=800px;dialogHeight=600px");
</script>
b.htm----------------
<script>
  var get = window.dialogArguments;
  alert("您传递的参数为:" + get);
</script>连接到其他框架
window.parent.left.location='dbfolder.asp';
连接到表单
frame1.document.form1.text1.value="heheh";
frame1.document.getElementById("text1").value="hahah"; 
全选或复制文本框里内容
     1.先说全选吧,这个比较简单:
<input type=text value="fdsfsdfsdfsdf" onMouseOver="this.select()">
     2.然后再说一下复制,这个稍比上面的复杂一点:
<script> 
function oCopy(obj){ 
obj.select(); 
js=obj.createTextRange(); 
js.execCommand("Copy") 
} 
</script> 
<input type="text" value="点击我copy!" οnmοuseοver="oCopy(this)">