I've noticed that the close() call in javascript does not interrupt execution, for example:
if (true /* replace with some meaningful condition determining if we should close */) {
close();
}
alert("This window is not closing...");
Since noticing this I've fixed my code up to work as intended, I just wondered why this happened?