Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script type="text/javascript">
- function openNewWindow(){
- var newWindow=window.open('redir2.html');
- newWindow.focus();
- newWindow.print();
- newWindow.close();
- }
- </script>
- </head>
- <body>
- <input type="button" value="Open new window" onclick="openNewWindow()" />
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement