51,407
社区成员
发帖
与我相关
我的任务
分享
哎.我问你的是indor.jsp是不是与custom.jsp在同一目录?不是同一目录的话.这样子写肯定不行的.用12楼的"<%=request.getContextPath()%>/custom.jsp"代替custom.jsp
custom.jsp这个页面与上面的代码这个页面是否在同一个目录下.
是不是路径问题?
var typename=window.showModalDialog("custom.jsp",,"dialogWidth=500px;dialogHeight=267px");
//custom.jsp在同一目录
<script type="text/javascript">
function opens(){
var typename=window.showModalDialog("<%=request.getContextPath()%>/custom.jsp");
if(typename!=null){
document.form1.cid.value=typename.replace(" ","");
alert(typename);
}
}
</script>window.showModalDialog("<%=request.getContextPath()%>/custom.jsp");
是,dialogHeight dialogWidth