374Part IIIDocument Objects (Web space) ReferenceIf you need to display

374Part IIIDocument Objects ReferenceIf you need to display single or double quotes in the status bar (as in the second link inListing 16-5), use escape characters ( and ) as part of the strings being assigned to theseproperties. Although Safari 1.0 sets the value correctly when the page loads, rolling the cur- sor around empty areas of the page causes the scripted default message to disappear. Related Items:window.statusproperty. dialogArgumentsValue:Varies.Read-OnlyCompatibility:WinIE4+, MacIE4+, NN-, Moz-, Safari- The dialogArgumentsproperty is available only in a window that is generated by the IE-spe- cific showModalDialog()or showModelessDialog()methods. Those methods allow aparameter to be passed to the dialog box window, and the dialogArgumentsproperty letsscripts inside the dialog box window s scripts access that parameter value. The value can bein the form of a string, number, or JavaScript array (convenient for passing multiple values). ExampleSee Listing 16-39 for the window.showModalDialog()method to see how arguments can bepassed to a dialog box and retrieved via the dialogArgumentsproperty. Related Items:window.showModalDialog(), window.showModelessDialog()methods. dialogHeightdialogWidthValue:String.Read/WriteCompatibility:WinIE4+, MacIE-, NN-, Moz-, Safari- Scripts in a document located inside an IE-specific modal or modeless dialog box (generatedby showModalDialog()or showModelessDialog()) can read or modify the height andwidth of the dialog box window via the dialogHeightand dialogWidthproperties. Scriptscan access these properties from the main window only for modeless dialog boxes, whichremain visible while the user can control the main window contents. Values for these properties are strings and include the unit of measure, the pixel (px). ExampleDialog boxes sometimes provide a button or icon that reveals more details or more complexsettings for advanced users. You can create a function that handles the toggle between twosizes. The following function assumes that the document in the dialog box has a buttonwhose label also toggles between Show Details and Hide Details. The button s onclickevent handler invokes the function as toggleDetails(this). function toggleDetails(btn) { if (dialogHeight == 200px ) { dialogHeight = 350px ; btn.value = Hide Details ; } else { dialogHeight = 200px ; btn.value = Show Details ; } } windowObject.defaultStatus