Printing the contents of a div tag without a POP-Up window in Javascript
<p>I'm struggling to print the contents of a div tag without a pop up window</p>

<p>My code looks like this at the moment</p>

<pre><code>var DocumentContainer = document.getElementById('print');

        var WindowObject = window.open('', 'Completed Registration Form', 'width=750,height=650,top=50,left=50,toolbars=no,scrollbars=yes,status=no,resizable=yes');

        WindowObject.document.writeln(DocumentContainer.innerHTML);

        WindowObject.document.close();

        WindowObject.focus();

        WindowObject.print();

        WindowObject.close();
</code></pre>

<p>The below uses a popup window, is there a way to not do this using a popup window.</p>
