windows.close will work when you open the window.
Example:
var tab; $('#click').click(function() { tab = window.open("blackie.html", "something", "width=650,height=50"); }); $('#close').click(function() { tab.close(); });
.close () will only work on opening, you also need to report that Js / jQ knows what to close:
somethingThatYouDidOpen.close();
source share