I've got a button, when clicked,
will show a pop-up screen.
Get to this window via
var w=window.open ("","newW","height=260,width=350, status=0");
Just to first keep it simple, this new window contains only 1 button
var d = w.document;
d.write('<FORM>');
d.write('<INPUT TYPE="submit" VALUE = "Quit" onClick="self.close()">');
d.write('</FORM>');
The code in fact pops up the new window - but why does it continue without waiting for the Quit button to close it?
will show a pop-up screen.
Get to this window via
var w=window.open ("","newW","height=260,width=350, status=0");
Just to first keep it simple, this new window contains only 1 button
var d = w.document;
d.write('<FORM>');
d.write('<INPUT TYPE="submit" VALUE = "Quit" onClick="self.close()">');
d.write('</FORM>');
The code in fact pops up the new window - but why does it continue without waiting for the Quit button to close it?