ResponseWrite(<script language=javascript>windowopenerlocation=windowopenerlocationhref;</script>)
第一种方案是
file
function OpenDialog(urlparam)
{
return windowopen(urlparam DialogWidth:px;DialogHeight:px;help:no;status:no);
}
file
<script language=javascript>
function js_do(val)
{
selfopenerdocumentallfilenamevalue=val
}
</script>
第二种方案是
file
<html>
<script language=javascript>
function OpenDialog(urlparam)
{
return windowshowModalDialog(urlparam DialogWidth:px;DialogHeight:px;help:no;status:no);
}
function js_getData(url)
{
return OpenDialog();
}
</script>
<body>
<form name=myFrm>
<input type=text name=filename onclick=thisvalue=js_getData()>
</form>
</body>
</html>
file
<html>
<script language=javascript>
function js_do(val)
{
windowreturnValue=val;
windowclose();
}
</script>
<body>
<form name=myFrm>
<input type=text name=filename>
<input type=text name=btnDo onclick=js_do(thisformfilenamevalue)>
</form>
</body>
</html>
ResponseWrite(<script language=javascript>windowopenerdocumentalltxtvalue=+theValue+;</script>);