×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: ColdFusion
Posted by: Rick Clark
Added: Oct 22, 2013 2:38 PM
Views: 1774
Tags: no tags
  1. <!DOCTYPE html>
  2. function openWin()
  3. {
  4. myWindow=window.open("","","width=200,height=100");
  5. myWindow.document.write("<p>This is 'myWindow'</p>");
  6. }
  7.  
  8. function closeWin()
  9. {
  10. myWindow.close();
  11. }
  12. </head>
  13.  
  14. <input type="button" value="Open 'myWindow'" onclick="openWin()" />
  15. <input type="button" value="Close 'myWindow'" onclick="closeWin()" />
  16.  
  17. </body>
  18. </html>
  19.