Javascript examples for Browser Object Model:Window open
Window open() Method - Open a new window and control its appearance:
<!DOCTYPE html> <html> <body> <button onclick="myFunction()">Test</button> <script> function myFunction() {/*from w w w .ja v a 2s .c o m*/ window.open("http://www.java2s.com", "_blank", "toolbar=yes,scrollbars=yes,resizable=yes,top=500,left=500,width=400,height=400"); } </script> </body> </html>