Advertisement
Guest User

Untitled

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