I would like to make a button on a page that can call a JS function in the same page. the function will need to produce (open) new window which its HTML code was given from the JS function itself. How can I do that?
The purpose of this is to produce a print friendly page out of a specific page. Please notice: No AJAX can be used.