 <p>Create new page (http page) for your require functionality to show under new window. and point the newly created page url in click window code. </p> <p>Or you can use native javascript to write you content in window. For example:</p> <p><strong>HTML</strong></p> <pre><code>&lt;button onclick="myFunction()"&gt;Try it&lt;/button&gt; </code></pre> <p><strong>Javascript</strong></p> <pre><code>&lt;script&gt; function myFunction() { var myWindow = window.open("", "MsgWindow", "width=200, height=100"); myWindow.document.write("&lt;p&gt;This is 'MsgWindow'. I am 200px wide and 100px tall!&lt;/p&gt;"); } &lt;/script&gt; </code></pre> <p>You can notice from <code>myfunction</code> function doing couple of task, first it will generate new window object secondly we writing something under newly created window object and then fire it successfully. </p> <p>By this method we do not need to worry about url to hit.</p>