父窗口获取弹出子窗口文本框的值
更新时间:2006年06月27日 00:00:00 作者:
<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 style='BACKGROUND: #ffffff; BORDER-BOTTOM: #0A3EAE 1px solid; BORDER-LEFT: #0A3EAE 1px solid; BORDER-RIGHT: #0A3EAE 1px solid; BORDER-TOP: #0A3EAE 1px solid'>\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">
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 style='BACKGROUND: #ffffff; BORDER-BOTTOM: #0A3EAE 1px solid; BORDER-LEFT: #0A3EAE 1px solid; BORDER-RIGHT: #0A3EAE 1px solid; BORDER-TOP: #0A3EAE 1px solid'>\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">
相关文章
一文了解JavaScript用Element Traversal新属性遍历子元素
这篇文章主要介绍了一文了解JavaScript用Element Traversal新属性遍历子元素,文章围绕Element Traversal新属性的相关资料展开详细内容,需要的朋友可以参考一下,希望对大家有所帮助2021-11-11
最新评论