| |||||||||||||||||||||||||||||||||||
showModalDialog MethodCreates a dialog box that displays the HTML document specified in sURL. The dialog box displayed is modal, meaning it retains the input focus until the user closes it. SyntaxvReturnValue = window.showModalDialog ( sURL
[ , vArguments ] [ , sFeatures ] )
Parameters
Return ValueVariant. Returns the value of the returnValue property as set by the window of the document specified in sURL. RemarksSince Microsoft® Internet Explorer® 4.0 it has been possible to eliminate scroll bars on dialogs. To turn off the scroll bar, set the SCROLL attribute to false in the BODY tag for the dialog window or call the modal dialog box from a trusted application. Internet Explorer® 5 enables further control over modal dialog boxes through the implementation of status and resizable in the sFeatures parameter of the showModalDialog method. Turn off the status bar by calling the dialog box from a trusted application, such as Microsoft Visual Basic® or an HTML Application ( HTA ) , or from a trusted window, such as a trusted modal dialog box. They are considered trusted because each uses Internet Explorer® interfaces instead of the browser. Any dialog generated from a trusted source will have the status bar off by default. Resizing is off by default but can be turned on simply by specifying resizable=yes in the sFeatures string of the showModalDialog method. The default font settings should be set in the same way CSS attributes are set, for example, "font:3;font-size:4". To define multiple font values, use multiple font attributes. The default unit of measure for dialogHeight and dialogWidth in Internet Explorer® 4.0 is the em; in Internet Explorer® 5 it is the pixel. For consistent results, specify the dialogHeight, dialogWidth, dialogTop and dialogLeft in pixels when designing modal dialog boxes. ExampleThis example demonstrates use of showModalDialog to open a modal window, along with dialogWidth, dialogHeight, dialogTop, and dialogLeft to size and position the window. Applies To |
| ||||||||||||||||||||||||||||||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme