Please tell me how to control the browser on this page. Requirements: do not display the menu bar, do not display the address bar, do not display the connection_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:14:41
Original
2051 people have browsed it

How to make a newly created html page display a fixed size. Cannot be maximized. It’s this page, not window.open().


Reply to discussion (solution)

window.open(location.href,"_self","height=400,width=400,top=10,left=10,location=no,menubar=no,resizable=no");
Copy after login

Still not the same

Both I’ve said it’s not window.open, don’t you understand?

I’ve already said it’s not window.open, can’t you understand?
Window.open does not necessarily mean opening a new window, you can open it in the current window The window opens the page at the specified URL.
If you request that the window.open method cannot be used, there is nothing you can do

Sorry, the code I provided cannot achieve the results you want. Browsers usually have restrictions on this method

The only way is to open the modal dialog box, which can be blocked and maximized
window.showModalDialog(url,{},'dialogWidth:500;dialogHeight:300;');
There is no modal dialog box The address bar and status bar have no maximum and minimum words, only a close button, and the compatibility is also good.
Since it is a modal window, it will block the page that opens it
The code you want to control on this page controls the browser The style is impossible to implement, don't have any illusions.
A workaround is to create another page b, and call window.showModalDialog in page b to open page a, so that you can use the address of page b as the address of a. Wherever page a is needed, the address of page b is used to implement it

Of course, you can also use this page to call window.showModalDialog and then open its own implementation, but you need to pass an address bar parameter to avoid falling into an infinite loop.

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template