jsp中如何弹出提示对话框和返回上一个页面? <html><head><script>function test(){alert("dfafa");}</script></head><body onload="test()></body></html> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我是在类似<% %>的语句中! out.println("<script language=javascript>");out.println("alert('test');");out.println("</script>");哈哈 返回的话,就用window.history.go(-1); <script>function test(){alert("提示");history.go(-1);}</script> out.println("<script>window.alert('警告!你使用非法符');window.history.go(-1);</script>"); 弹框用:<script>function test(){ alert("弹框");}</script>返回用:history.go(-1); out.println("<script language='JavaScript'>");out.println("alert('已有此用户名!')");out.println("history.go(-1)");out.println("</script>"); out.println("<script>window.alert('警告!你使用非法符');window.history.go(-1);</script>");最好 数据库访问出错,烦指教,菜鸟问题 帮忙~~~~~~~ 设置filter后启动不了. 请教 html-el使用问题 jquery动态添加删除问题 关于分页的问题,在servlet中查询的数据库,在jsp中分页显示,但是首尾页和上一步下一步不许使用连接,只能用按钮,哪位达人能指点一下? 时间怎么加减? 用同台机器可以调试EJB吗? 怎么配置jrun使它来运行我编写的jsp代码? Tomcat做服务器,图片URL不变的时候如何强制刷新? 紧急求救!!如何用让HTML转成的WORD输出里, 设置它的表头,就是让这个表头在每一页都显示 最近小弟修改了一个网站,
<% %>的语句中!
out.println("alert('test');");
out.println("</script>");
哈哈
function test(){
alert("提示");
history.go(-1);
}
</script>
<script>
function test(){
alert("弹框");
}
</script>返回用:
history.go(-1);
out.println("alert('已有此用户名!')");
out.println("history.go(-1)");
out.println("</script>");
最好