Skip to content

Instantly share code, notes, and snippets.

@alixcan
Created October 9, 2012 19:16
Show Gist options
  • Save alixcan/3860824 to your computer and use it in GitHub Desktop.
Save alixcan/3860824 to your computer and use it in GitHub Desktop.
JavaScript: jQuery Pop-Out (Chrome)
$(function(){
function popout(){
window.open(window.location.href,'popup','width=' + $('body').outerWidth() + ',height=' + window.screen.height + ',top='+ 0 +',screenY='+ 0 +',left='+ (window.screen.width - $('body').outerWidth()) +',screenX='+ (window.screen.width - $('body').outerWidth()) + ',toolbar=no,scrollbars=yes,location=no,resizable =no');
window.close();
}
$('#popout').on('click', function() {
popout();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment