Posted By

Rito on 05/26/11


Tagged

javascript popup


Versions (?)

Popup function


 / Published in: JavaScript
 

  1. function kompassImage(imgsrc){
  2. var pop;
  3. pop= window.open(imgsrc,'_blank','width=1969,height=1000,status=yes,scrollbars=yes,resizable=yes');
  4. pop.focus();
  5. with (kompass.document){
  6.  
  7. writeln('<html><head><title></title>');
  8. writeln('</head><body><a href="javascript:close();" style="display:block;">');
  9. writeln('<img src='+imgsrc+' style="display:block; border:none;"></a></body></html>');
  10.  
  11. close();}};

Report this snippet  

You need to login to post a comment.