Include one html file to another html file via window.open - Javascript Browser Object Model

Javascript examples for Browser Object Model:Window open

Description

Include one html file to another html file via window.open

Demo Code

ResultView the demo in separate window

<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>

Related Tutorials