Monthly Archives: December 2005

How to use javascript to pass value from a dialog page

1. Use window.showModalDialog method to popup a dialgbox var rtn = window.showModalDialog(“ModalWindow.htm”,obj,”dialogWidth:300px;dialogHeight=200px;status:no”); 2. in the dialogbox page a. window.dialogArguments represent input param var argu = window.dialogArguments b. set window.returnValue when close the window var rtn = new Object(); = document.form1.edit1.value; rtn.age = document.form1.edit2.value; window.returnValue = rtn; window.close(); for detail information, please see fllowing files: [...]