In my design, i want my Internet Explorer close automatically. Here is my code:
However, a pop up message was displayed after that. If nobody click the OK button, then the page will not close itself.Code:<script LANGUAGE="JavaScript"> function closePg(){ window.close(); return true; } </script> <body onLoad="return closePg()"></body>
Attachment 445



Reply With Quote


Every time the user clicks "Cancel," the function is run again, but the original call will still be in memory, since it won't return until the child does. That means that by the time they've clicked "Cancel" twenty times, you've got twenty-one copies of the function running, all at once.
Bookmarks