62,268
社区成员
发帖
与我相关
我的任务
分享
function OpenMyHTML()
{
var newWindow=window.open('wnd.htm',null,'height=200,width=400');
var aa=document.getElementById('TextBox1').value;
newWindow.document.write(aa);
}
<input id="Button1" type="button" value="button" onclick="OpenMyHTML()" />