I have one sharepoint requirement of closing the browser or tab in google chrome after user click on submit button .Already tried window.close(); ,its not working in current version browsers (only working in IE) .So pls help with the code using jquery or javascript . Small code which i'm trying -
$(document).ready(function(){
$("#btn").click(function () { //btn -button id
var e = $.Event();
e.which == 87; //W keycode
e.ctrlKey == true;
$(this).trigger('e');
alert(1);
});
});
window.top.close();?