主窗口:
<input type=text name=ffile>
<script>
function modelwin(){
x=window.showModalDialog("updown.htm",window,"dialogHeight:200px;dialogWidth:400px;center:yes;help:No;resizable:No;status:No;");
ffile.value=x;
}
</script>
<input type=button value=open onclick="modelwin()">ModalDialog窗口:
<input type="text" name="heiha">
<button onclick="doSomething()">do somthing</button>
<script>
function doSomething(){
returnValue = heiha.value;
close();
}
</script>
<input type=text name=ffile>
<script>
function modelwin(){
x=window.showModalDialog("updown.htm",window,"dialogHeight:200px;dialogWidth:400px;center:yes;help:No;resizable:No;status:No;");
ffile.value=x;
}
</script>
<input type=button value=open onclick="modelwin()">ModalDialog窗口:
<input type="text" name="heiha">
<button onclick="doSomething()">do somthing</button>
<script>
function doSomething(){
returnValue = heiha.value;
close();
}
</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货