用javascript就可以了,给你一个例子<script LANGUAGE="JavaScript"> function js_callpage(htmlurl) {
var newwin=window.open(htmlurl,"_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=450,height=350");
newwin.focus();
return false;
}</script>你可以在用户点击submit按钮时使用
var newwin=window.open(htmlurl,"_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=450,height=350");
newwin.focus();
return false;
}</script>你可以在用户点击submit按钮时使用
你就知道了!!
<input type="Button" name="NameSearch" value="名前検索" style="background:#003399;color:White;width:70;" onclick='javascript:window.open("<%=Form.getFormLinkURL("CMN_APP_NameSearchForm")%>","","width=580,height=630,scrollbars=1,resizable=1,left=150,top=20");'>
“Anubis(为朋友两肋插刀,为MM插朋友两刀!!) ”兄的方法看起来可行,但我试了一下,好象它一直报错,说“Form”这个变量找不到,我已经把表单名改成“Form”了。不知什么原因。
1、页面A正常提交页面B
2、页面B的script程序关闭本页面,然后全屏打开页面C页面B关闭本页面需要一个Object对象,程序如下:
<html>
<head>
<script language=javascript>
<!--
function body_onload(){
var winStyle='menubar=no,status=yes,width='+screen.width+',height='+screen.height+',left=0,top=0';
try{
closes.Click();
crmcenter=window.open('/default.jsp','_blank',winStyle);
crmcenter.moveTo(0,0);
crmcenter.resizeTo(screen.width,screen.height-28);
}
catch(e){
}
}
-->
</script>
</head>
<body onload="body_onload()"><object id="closes" type="application/x-oleobject"
classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Close">
</object></body>
<input name="submit" type='submit' style='font:10pt Arial; border:1 solid darkblue;cursor:hand;background:#66CCFF' value='单项选择题'>
改成
<input name="submit" type='button' style='font:10pt Arial; border:1 solid darkblue;cursor:hand;background:#66CCFF' value='单项选择题'onclick='return js_callpage(paperks_1.jsp);'>还有,我的和Anubis的jvs代码不是一样的嘛。
<head>
<script LANGUAGE="javascript">
<!--
function my(){
window.open("a.jsp","aaa","menubar=no");
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF">
<a href=# onclick=my()>openwindow</a>
</body>
</HTML>
<form name="form2" method="post" >
<input name="Button" type="button" onClick="windowopen()" value="提交">然后加入如下代码:
<script language="JavaScript">
function windowopen()
{
window.open("paperks_1.jsp",null,"height=400,width=500,status=yes,scrollbars=yes,resizeable=1,center=yes");
}</script>
1、页面A在同一窗口正常提交表单到页面B。
2、页面B的script程序关闭本页面,接着马上全屏打开页面C。页面B的代码如下(注意:页面B关闭本页面利用了一个Object对象):
<html>
<head>
<script language=javascript>
<!--
function body_onload(){
var winStyle='menubar=no,status=yes,width='+screen.width+',height='+screen.height+',left=0,top=0';
try{
closes.Click();
crmcenter=window.open('/default.jsp','_blank',winStyle);
crmcenter.moveTo(0,0);
crmcenter.resizeTo(screen.width,screen.height-28);
}
catch(e){
}
}
-->
</script>
</head>
<body onload="body_onload()"><object id="closes" type="application/x-oleobject"
classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Close">
</object></body>
还有一点,我提交表单是带参数的也就是说我是要在paperks_1.jsp这个页面里用到了提交的参数。
这个问题还没解决,急啊!!!
我还有134分我全撒在这里了,希望大家帮忙。