morpe

window.open() 2

Feb 25th, 2011
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function inGrande(myImg){
  2.  
  3.     //window.open(URL,name,specs,replace)
  4.     //window.open(allImg[myImg],"theUp",height=400,width=400);
  5.     //window.open("PopUp.html","theUp",height=400,width=400);
  6.     var ilTag = "<html><head></head><body>";
  7.         ilTag += "<br><a href='javascript: close()'>chiudi!!</a><br>";
  8.         ilTag += "<img src='";
  9.         ilTag += allImg[myImg];
  10.         ilTag += "' ";
  11.         ilTag += "height='600' ";
  12.         ilTag += "/>\n";
  13.         ilTag += "</body></html>";
  14.    
  15.     myWindow=window.open('PopUp.html','huffa','width=600,height=600');
  16.     myWindow.document.write(ilTag);
  17.     myWindow.focus();
  18.     //myWindow.opener.document.write("<p>This is the source window!</p>");
  19.    
  20. }
Add Comment
Please, Sign In to add comment