Javascript to close browser window simultaneously with dialog box
<p>I'm working on an asp.net web form. This form has a button to open a new window (report window) and show a report. But first the user has to select a client from the list in the form before he/she can see the report. For validation matter, I use code to check whether the user has selected one of the client or not, the validation is done in the new window (report window).<br><br>
The validation is set to show a javascript dialog box if the user hasn't selected one of the client, it's working fine, the dialog box show the message with a single <strong>OK</strong> button. Is it possible to close the window concurrent with the dialog box when the user click the <strong>OK</strong> button ?</p>
