1.如何在新窗口中刷新母窗口中的frame(点击打开新窗口的frame不是要刷新的frame)??
2.如何便新开的窗口居中??
3.如何使frame窗口中的重定向定向到整个窗口,而不是在frame窗口里??
1.未知
2.window.open(xxx.asp,target_name,width=x,height=y,left=(screen.width-x)/2)
3.<a href=aaa.asp target="_parent">aaa</a>
1.opener.document.frames[frameName].location.reload()
2.
<a href="javascript:window.open(about:blank,,width=100,height=100,left=+(screen.width-100)/2+,top=+(screen.height-100)/2+,resizable=no)">open</a>
<SCRIPT LANGUAGE="JavaScript">
<!--
function launchCenter(url, name, height, width) {
var str = "height=" + height + ",innerHeight=" + height;
str += ",width=" + width + ",innerWidth=" + width;
if (window.screen) {
var ah = screen.availHeight - 30;
var aw = screen.availWidth - 10;
var xc = (aw - width) / 2;
var yc = (ah - height) / 2;
str += ",left=" + xc + ",screenX=" + xc;
str += ",top=" + yc + ",screenY=" + yc;
}
return window.open(url, name, str);
}
var win = launchCenter(center.html, center, 220, 440);
// -->
</SCRIPT>
3.top.location.href="**.asp"
use response.write "<script>top.location.href=**.asp</script>"
比较像Script问题。
fason(阿信)的回答完全正确。
<script language=javascript>
function FormHeadler(){
var url=document.form1.text1.value;
window.location.href=url;
</script>
...
<body onload="FormHeadler()">
...
</body>