Skip to content

Instantly share code, notes, and snippets.

@neko-fire
Created May 10, 2012 07:45
Show Gist options
  • Save neko-fire/2651753 to your computer and use it in GitHub Desktop.
Save neko-fire/2651753 to your computer and use it in GitHub Desktop.
JavaScript: Popup function
function kompassImage(imgsrc){
var pop;
pop = window.open(imgsrc,'_blank','width=1969,height=1000,status=yes,scrollbars=yes,resizable=yes');
pop.focus();
with (kompass.document){
writeln('<html><head><title></title>');
writeln('</head><body><a href="javascript:close();" style="display:block;">');
writeln('<img src='+imgsrc+' style="display:block; border:none;"></a></body></html>');
close();
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment