Web hosting - 375Chapter 16Window and Frame ObjectsIn practice, you also

375Chapter 16Window and Frame ObjectsIn practice, you also have to toggle the displaystylesheet property of the extra materialbetween noneand blockto make sure that the dialog box does not display scrollbars in thesmaller dialog box version. Related Items:window.dialogLeft, window.dialogTopproperties. dialogLeftdialogTopValue:String.Read/WriteCompatibility:WinIE4+, MacIE4+, 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 left and topcoordinates of the dialog box window via the dialogLeftand dialogTopproperties. 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). If youattempt to change these values so that any part of the dialog box window would be outsidethe video monitor, the browser overrides the settings to keep the entire window visible. ExampleAlthough usually not a good idea because of the potentially jarring effect on a user, you canreposition a dialog box window that has been resized by script (or by the user if you let thedialog box be resizable). The following statements in a dialog box window document s scriptrecenters the dialog box window. dialogLeft = (screen.availWidth/2) - (parseInt(dialogWidth)/2) + px ; dialogHeight = (screen.availHeight/2) - (parseInt(dialogHeight)/2) + px ; Note that the parseInt()functions are used to read the numeric portion of thedialogWidthand dialogHeightproperties so that the values can be used for arithmetic. Related Items:window.dialogHeight, window.dialogTopWidthproperties. directorieslocationbarmenubarpersonalbarscrollbarsstatusbartoolbarValue:Object.Read/Write (with signed scripts) Compatibility: WinIE-, MacIE-, NN4+, Moz1+, Safari- Beyond the rectangle of the content region of a window (where your documents appear), theNetscape browser window displays an amalgam of bars and other features known collectivelyas chrome. All browsers can elect to remove these chrome items when creating a new window(as part of the third parameter of the window.open()method), but until signed scripts wereavailable in Navigator 4, these items could not be turned on and off in the main browser win- dow or any existing window. windowObject.directories