In recent days, I have been working on the pattern window, and I have written this summary for reference: 1. Open window: var handle = window.showmodaldialog (URL, Objects, Feathers); where: Objects can be parameters (including arrays) or objects. Usually usage Objects = {Window}, sharing the object of the parent form to the child form.
2. Close upon window: window.close ();
3. From the sub-form pass parameter to the parent window: window.returnval = string;
3. Clear the cache, prevent the mode window page does not update: html ASP <% response.expires = -1Response.expiresabsolute = now () - 1Response.cachecontrol = "no -cache "%> PHPHEADER (" Expires: MON, 26 JUL 1997 05:00:00 GMT "); Header (" Cache-Control: No-cache, Must-revALIDATE "); Header (" Pragma: no-cache " ); JSPRESPONSE.SETHETHER ("Pragma", "NO-Cache"); Response.setHeader ("Cache-Control", "NO-Cache"); Response.SetDateHeader ("Expires", 0);
4. Prevent opening new window (such as submitting form):
5. Using F5 refresh page in the mode window: