How can I insert div that is already shown on web page in the print function.This is the function:\[code\]function printHTML(input){ var iframe = document.createElement("iframe"); document.body.appendChild(iframe); iframe.contentWindow.document.write(input); iframe.contentWindow.print(); document.body.removeChild(iframe); }printHTML('<h1>Test!</h1>');\[/code\]But I need to put inside something that is already shown on the webpage