求一个JS弹出框的制作代码 jsp里点击事件跳出一个弹出框上面有三个单选按钮跟一些说明文字还有一个确定一个取消按钮选择单选按钮然后点确定,可以提交给.do取消按钮关闭这个弹出框 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script> function ff() { var jj = window.showModelDialog("a.jsp",window,"一堆的参数,大小高底等"); }</scritp><input type="button" onclick="ff()" value="打开窗口">a.jsp<head> <base target="_self"></head><form name="aa" action="XXXXXXXXX.do"><input type="radio" name="ff" checked>//默认选中<input type="radio" name="ff" ><input type="radio" name="ff" ><input type="submit" value="确定"><input type="button" value="取消" onclick="winodw.close();return false;"></form> 弹出确认框:window.confirm(); <script language=”JavaScript”><!-- var result = window.confirm(“Click OK to continue”);// --></script> AWUSOFT 谢谢你的方法我想要的是类是 alert() 这种的单上面的选项我想自己设置不知道有没有这种 main.html:<html><head><script>function openWindow(){window.open("window.html");}</script> </head><body><form id="form1" name="form1" method="post" action=""> <label>Click will open window <input type="button" name="OpenWindow" value="Open Window" onclick="openWindow()"/> </label></form></body></html>window.html:<html><head><script>function send(){ var radiogroup=document.formname.radioname; var radioLength=document.formname.radioname.length; var url="*.do?"; if(radioLength==0){ alert("Please select at least one radio"); }else{ for(var i=0;i<radioLength;i++){ if(radiogroup[i].checked){ url+="radiovalue="+radiogroup[i].value; } } } alert(url); document.location=url; }</script></head><body><form id="formid" name="formname" method="post" action=""> <input name="radioname" type="radio" value="value1" /> Radio1 <input name="radioname" type="radio" value="value2" /> Radio2 <input name="radioname" type="radio" value="value3" /> Radio3 <br /> <input name="Ok" type="button" value="OK" onclick="send()"/> <input name="cancel" type="button" value="Cancel" onclick="window.close();"/></form></body></html> HTML里没有这样的功能,你还要提交上去,没有,只能自己写,你想想要是那样的话,那么我有很多的属性呢?不只三个单选 按钮?难道专门做一个只有三个单行按钮的来提交啊?,用window.open()并不是弹出排它窗口,也就是只能点击这个窗口. Eclipse 上how运行导入到workspace的工程 转行没成功 我的jsp发送HTML邮件的问题 JS控制图片问题? jsp指令有没有获得应用程序目录的? 使用百度云数据库JDBC连接 招聘JAVA开发工程师(上海,月薪3500另加项目奖金) JDBC简单问题。 applet小应用程序在ie6.0中的运行问题 jsp投票系统点击注册按钮完全没有反应 Session退出,我监控不到?valueUnbound的使用 急!jsp连接sqlsever时的问题
function ff()
{
var jj = window.showModelDialog("a.jsp",window,"一堆的参数,大小高底等");
}
</scritp>
<input type="button" onclick="ff()" value="打开窗口">
a.jsp<head>
<base target="_self">
</head>
<form name="aa" action="XXXXXXXXX.do">
<input type="radio" name="ff" checked>//默认选中
<input type="radio" name="ff" >
<input type="radio" name="ff" >
<input type="submit" value="确定">
<input type="button" value="取消" onclick="winodw.close();return false;">
</form>
<!--
var result = window.confirm(“Click OK to continue”);
// -->
</script>
谢谢你的方法
我想要的是类是 alert() 这种的单上面的选项我想自己设置
不知道有没有这种
<html>
<head>
<script>
function openWindow(){
window.open("window.html");
}
</script>
</head><body>
<form id="form1" name="form1" method="post" action="">
<label>Click will open window
<input type="button" name="OpenWindow" value="Open Window" onclick="openWindow()"/>
</label>
</form>
</body>
</html>window.html:
<html>
<head>
<script>
function send(){
var radiogroup=document.formname.radioname;
var radioLength=document.formname.radioname.length;
var url="*.do?";
if(radioLength==0){
alert("Please select at least one radio");
}else{
for(var i=0;i<radioLength;i++){
if(radiogroup[i].checked){
url+="radiovalue="+radiogroup[i].value;
}
}
}
alert(url);
document.location=url;
}</script>
</head><body>
<form id="formid" name="formname" method="post" action=""> <input name="radioname" type="radio" value="value1" />
Radio1
<input name="radioname" type="radio" value="value2" />
Radio2
<input name="radioname" type="radio" value="value3" />
Radio3
<br />
<input name="Ok" type="button" value="OK" onclick="send()"/>
<input name="cancel" type="button" value="Cancel" onclick="window.close();"/>
</form>
</body>
</html>