Javascript - popup imagen redimensionado desde padre.


/ Published in: PHP
Save to your folder(s)

Abrir imagen


Copy this code and paste it in your HTML
  1. function abrirImagen( imagen ){
  2. html = "<html><head><TITLE>Imagen</title></head><body leftmargin=\"0\" marginheight=\"0\" topmargin=\"0\" marginwidth=\"0\">" +
  3. "<img src=\"" + imagen + "\" border=\"0\" name=\"image\" onload=\"window.resizeTo(document.image.width,document.image.height+38)\"></body></html>";
  4. popup=window.open('','image','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0');
  5. popup.document.open();
  6. popup.document.write( html );
  7. popup.document.focus();
  8. popup.document.close()
  9. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.