CD-257Appendix F . Examples from (Web site counters) Parts III and
CD-257Appendix F . Examples from Parts III and IV dialogArguments NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility Example See Listing 16-38 for the window.showModalDialog()method to see how arguments can be passed to a dialog box and retrieved via the dialogArgumentsproperty. dialogHeight dialogWidth NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility Example Dialog boxes sometimes provide a button or icon that reveals more details or more complex settings for advanced users. You can create a function that handles the toggle between two sizes. The following function assumes that the document in the dialog box has a button whose 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 } } In practice, you also have to toggle the display style sheet property of the extra material between none and block to make sure that the dialog box does not display scrollbars in the smaller dialog box version. windowObject.dialogHeight
Please visit our professional web hosting services to find out about cheap and reliable webhost service that will surely answer all your demands.