java开发中,一些小的JS应用

js中打开一个新窗口的方法:
1.window.location.href=“url”
2.jbox.win();
  3.window.open();
js无任何提示的关闭弹出的页面:
window.opener=null;
window.open('','_self');
  window.close();
在servlet中,进行页面弹出提示,然后自动关闭:
out.println("<script>alert('提示的内容');window.close();</script>");
 

猜你喜欢

转载自www.cnblogs.com/love-daodao/p/11143027.html