"Go" JSP Web page full screen, exit Full-screen, close page JSP related knowledge 2009-06-07 20:36:42 Read 108 Comments 0 font Size:
Big Small Subscribe Full Screen display--------------------------------------------------------------------------------------------------------------------- -----------------------------------------------
the first: on a regular page that has been opened, click on "Full Screen" and then go to the full screen mode of the page. The method is: in the Web page with the following code: If the full screen is not the page, then only need to change the document.location to the corresponding URL, that is, the following code: The second: When running a Web page, such as you in the URL bar directly input: http://localhost : 8080/temp.jsp, this time to close the page, while displaying a blank Full-screen page, the method is: in the body to write the following code: The third: In fact, the above two kinds of superposition, generally this situation is also used more. is when you open a Web page directly, into its full-screen mode, this situation is different from the first, because the first, when you click on the "Full Screen" button, it is a new open full screen of the page, but the original ordinary page still have, so, this is better. The method is: Create two JSP files, the first one only run the following code, such as the name demo.jsp; the second is what you actually want to run, such as: temp.jsp:demo.jsp:temp.jsp:<%@ page contenttype=. text/html;charset=gb2312 "Language=" Java%> here is my full screen content, and then look at the original we entered in the Address bar demo.jsp, is not closed. OK, it's done.
Exit Full Screen--------------------------------------------------------------------------------------------------------------------- -----------------------------------------------to quit full screen, I also searched a lot of information on the Internet, in general, it is difficult to achieve our desired goals, such as: We can add a hyperlink Open in a new window, or you can apply the reverse method of the method above to open Full-screen. However, no matter how, and finally from Full-screen to normal mode switch, it is always the equivalent of reopening a window, so, add our original Full-screen mode is putting the film, if you switch to normal mode, you have to reload, this certainly not. However, there is no way, I now refer to this post in the 5 floor of the reply: http://topic.csdn.net/t/20021028/12/1130882.html, this method, the general still go, but, it is not called this method Full-screen, The equivalent is to shift the window upward to a certain height, we can still drag the window. The code is as follows: <%@ page contenttype= "text/html;charset=gb2312" language= "java"%>
Close the page--------------------------------------------------------------------------------------------------------------------- -----------------------------------------------If you want to close the page, you only need to add a hyperlink to the page: Close the window JSP and HTML close the page code first: JSP timer automatically close the window Second: Click on the link no hint of JSP close window close window Third: The window is not prompted to automatically close the JSP code Fourth: ASP Code Submission window after the message and automatically close the window of the JSP code Response.Write "" Automatically return code for previous page: Response.Write ("") ie6-7 JSP close window does not prompt method one: JSP code jining Web site production function Closewin ()//This does not prompt you to close the browser {window.opener= Null Window.opener=top; window.open ("", "_self"); Window.close (); Method Two: Open.html JSP code function open_complex_self () {var Obj_window = window.open (' close.html ', ' _self '); obj_window.ope ner = window; Obj_window.focus (); } CLOse.html JSP code window.close (); Additional://General hint close function Closeie () {window.close ();}//Close IE6 does not prompt function Closeie6 () {window.opener=null; Window.close ();} Close IE7 does not prompt function Closeie7 () {window.open (', ' _top '); Window.top.close ();