JavaScript dialog box details and parameters _ basic knowledge
Source: Internet
Author: User
dialog boxes can be divided into modal dialogs and modeless dialogs, the difference being whether users can work elsewhere in the same application until the dialog box is closed. For example: Open a File dialog box is a typical modal dialog box, you choose to open the file after the confirmation, or cancel open the file operation, you can do other operations in the same application. The common Find and Replace dialog box is typical of modeless dialogs, and we can do other work while the dialog box is open. The modal dialog box always holds the focus. The window cannot be toggled unless the dialog box is closed. The modeless dialog box does not always hold the focus, but remains displayed at the front end.
Pop-up web window full Raiders (Html/hta)
1. Bounce a full-screen window
<body onload= "window.open (http://www.3lian.com, example01, fullscreen);" >;
<b>www.3lian.com</b>
</body>
ShowModalDialog () or showModelessDialog () to invoke the Web Page dialog, the difference between ShowModalDialog () and showModelessDialog () is ShowModalDialog ( Open window (short mode window), placed on the parent window, must be closed in order to access the parent window (recommended as little as possible, so as not to be annoying); showModelessDialog () (for short, modeless window), open without having to close or access the window opened by the parent window.
Dialogheight:iheight sets the height of the dialog box window.
Dialogwidth:iwidth sets the width of the dialog box window.
Dialogleft:ixpos sets the left position of the dialog window relative to the upper-right corner of the desktop.
Dialogtop:iypos sets the top position of the dialog window relative to the upper-left corner of the desktop.
Center: {yes | no | 1 | 0} Specifies whether the dialog box is centered on the desktop, and the default value is yes.
Help: {yes | no | 1 | 0} Specifies whether the context-sensitive aid icon is displayed in the dialog box window. The default value is yes.
Resizable: {yes | no | 1 | 0} Specifies whether the dialog box window is variable in size. The default value is "no".
Status: {yes | no | 1 | 0} Specifies whether the dialog box window displays the status bar. For modeless dialog windows, the default value is Yes, and for modal dialog windows, the default is "no".
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service