I would like to make a button on the page that can call the JS function on the same page. The function will have to create (open) a new window, which its HTML code was given from the JS function itself. How can i do this?
The purpose of this is to create a page that supports printing on a specific page.
Please note: AJAX cannot be used.
javascript html printing website
MA Kishawy
source share