直接上程式碼,有些地方可以用到: 複製程式碼 程式碼如下: PUBL "///W3/IC DTD HTML 4.0 Transitional//EN"> New Document <BR><!--<BR>function selectValue(){<BR> window.open("sub.html","","status:no;resizable:yes;dialogHeight:410pxdialogWidthx;logWidthx;logWidth :460px;unadorne:yes")<BR>}<BR>//--><BR> text: sub.html頁面代碼是 複製程式碼 程式碼如下: PUBL "///W3/IC DTD HTML 4.0 Transitional//EN"> New Document <BR><!--<BR>function selectValues(){<BR> var obj = document.getElementsByName("temp");<BR> var value = "";<BR> i = 0 ;i < obj.length ; i ){<BR> if(obj[i].checked == true)<BR> opener .document.all.testInput.value = value;<BR> window.close();<BR>}<BR>//--><BR> A B C D