Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
  5. <title></title>
  6. <style type="text/css" media="screen">
  7.  
  8. html, body{height:100%; font-family:Arial, Helvetica, sans-serif;}
  9.  
  10.  
  11. </style>
  12. <script type="text/javascript">
  13.    
  14.     //Replace this with the resource URL to open. It can be a relative URL or an absolute URL
  15.     var resource = "index.htm";
  16.    
  17.     function onLoad() {
  18.         //Full screen Popup Window parameters. Defaults to the full screen of the user.
  19.         //Replace screen.width/height with a pixel value for the size you want
  20.         var params = 'width=' + screen.width;
  21.         params += ', height=' + screen.height;
  22.         //If you want full screen leave these two lines uncommented
  23.         params += ', top=0, left=0';
  24.         params += ', fullscreen=yes';
  25.         //Pops open a new window with the specified URL inside it. It can be a
  26.         //relative or absolute URL
  27.                    
  28.         fullWindow = window.open(resource,'fullWindow',params);
  29.        
  30.         if (window.focus) {
  31.             fullWindow.focus();
  32.         }
  33.         return;
  34.     }
  35.    
  36.  
  37. </script>
  38. </head>
  39. <body onload="onLoad();">
  40. <h1>This resource needs to open a popup window.</h1>
  41. <div>
  42.     <a href="javascript:onLoad();">Click here if you don't see the resource launch.</a>
  43. </div>
  44.  
  45. </body>
  46. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement