完整代码:
复制代码 代码示例:
<script defer>
function browser.onclick(){
var nW = window.open("","","width=170,height=200");
nW.moveTo(300,100);
nW.document.write("<script defer>r"+
"var m=true;r"+
"function insert.onclick(){r"+
"if(m){r"+
"opener.atext.value=btext.value;rm=false;"+
"}else{r"+
"opener.atext.value+='-'+btext.value;r"+
"}r}r"+
"</script>r"+
"<input name=btext value=111111 size=10>r"+
"<input type=button value=选择 name=insert style='background-color: #EBF5FC; border: 1px solid #0099CC'>");
}
</script>
<textarea name="atext" cols="60" rows="4" ></textarea>
<input type=button value=选择参数 name=browser style="background-color: #EBF5FC; border: 1px solid #0099CC">