Baseline Widely available
å·²å¼ç¨: ä¸åæ¨è使ç¨è¯¥ç¹æ§ãè½ç¶ä¸äºæµè§å¨ä»ç¶æ¯æå®ï¼ä½ä¹è®¸å·²ä»ç¸å ³ç web æ åä¸ç§»é¤ï¼ä¹è®¸æ£åå¤ç§»é¤æåºäºå ¼å®¹æ§èä¿çã请尽éä¸è¦ä½¿ç¨è¯¥ç¹æ§ï¼å¹¶æ´æ°ç°æç代ç ï¼åè§æ¬é¡µé¢åºé¨çå ¼å®¹æ§è¡¨æ ¼ä»¥æå¯¼ä½ ä½åºå³å®ã请注æï¼è¯¥ç¹æ§éæ¶å¯è½æ æ³æ£å¸¸å·¥ä½ã
Window.showModalDialog()
ç¨äºå建åå±ç¤ºä¸ä¸ªæåç¹å®ç½é¡µç模æå¯¹è¯æ¡ã
returnVal = window.showModalDialog(uri[, arguments][, options]);
å ¶ä¸
returnVal
éåç±»å (Set) è¿åå¼ãç±uri
æå®ç页é¢è¿åãuri
è¦å¨æ¨¡æå¯¹è¯æ¡ä¸æå¼çé¡µé¢ URIãarguments
å¯éåéãå¯ä»¥éè¿è¯¥åæ°å°éè¦çå¼ä¼ å
¥å¯¹è¯æ¡ãoptions
å¯éåç¬¦ä¸²åæ°ãç¨äºè®¾ç½®å¯¹è¯æ¡æå¼çæ ·å¼ï¼ä½¿ç¨ä¸ä¸ªæå¤ä¸ªéå·åéãcenter: {on | off | yes | no | 1 | 0 }
If this argument's value is on
, yes
, or 1, the dialog window is centered on the desktop; otherwise it's hidden. The default value is yes
. dialogheight: height
Specifies the height of the dialog box; by default, the size is specified in pixels. dialogleft: left
Specifies the horizontal position of the dialog box in relation to the upper-left corner of the desktop. dialogwidth: width
Specifies the width of the dialog box; by default, the size is specified in pixels. dialogtop: top
Specifies the vertical position of the dialog box in relation to the upper-left corner of the desktop. resizable: {on | off | yes | no | 1 | 0 }
If this argument's value is on
, yes
, or 1, the dialog window can be resized by the user; otherwise its size is fixed. The default value is no
. scroll: {on | off | yes | no | 1 | 0 }
If this argument's value is on
, yes
, or 1, the dialog window has scroll bars; otherwise its size is fixed. The default value is no
.
夿³¨ï¼ Firefox does not implement the dialogHide
, edge
, status
, or unadorned
arguments.
Introduced by Microsoft Internet Explorer 4. Support added to Firefox in Firefox 3 (deprectated in Fx 28), and to Safari in Safari 5.1.
Examples NotesshowModalDialog()
is currently being standardized as part of HTML5. The third argument (for additional options) is not present in the HTML5 version, and is (safely) ignored by both Safari and Chrome.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4