Three ways to display code in js full screen_javascript skills
WBOYOriginal
2016-05-16 17:16:171324browse
The first method: On an ordinary webpage that has been opened, click "Full Screen Display", and then enter the full screen mode corresponding to the webpage. The method is: add the following code between
If the page displayed in full screen is not this page, you only need to replace document.location with the corresponding URL. That is, the following code:
Second type: When running a web page, for example, if you directly enter: http://localhost:8080/temp.jsp in the URL bar, the web page will be closed and a blank full screen will be displayed at the same time. Web page, the method is: write the following code in the body:
Third Type: It is actually a superposition of the above two types, and is generally used more often in this situation. That is, when you directly open a web page, you enter its full-screen mode. This situation is different from the first one, because in the first one, when you click the "Full Screen Display" button, it opens a new full-screen web page. , but the original ordinary web page is still there, so this one is better. The method is: create two jsp files, the first one only runs the following code, for example, the name is demo.jsp; the second one is the content you actually want to run, for example: temp.jsp:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn