I cant figure out why this won't work. Is there something wrong with this code? The function is being called I checked with an alert but it just won't close the window.
$('#click').click(function() {
var win = window.open("test3.html","something","width=550,height=170");
});
function closeit(){
win.close();
}
and on test3.html
window.opener.closeit();