Javascript examples for Browser Object Model:Window open
Include one html file to another html file via window.open
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript"> function showSomething()/*from w w w . ja v a 2 s. c om*/ { window.open ("","MsgWindow", "width = 700, height = 500"); } </script> </head> <body> <button id="btn" onclick="showSomething()"> Click </button> </body> </html>