How to close a window without prompt using java script? For servlet: out.println (“<script>”); out.println (“window.opener = top;”); out.println (“window.close()”); out.println (“</script>”); For html or jsp: <script> window.opener = top; window.close(); </script>
-
Recent Posts
-
February 2012 M T W T F S S « Apr 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 Archives