0

Assuming I have outerpage.html

<html>
<head>
</head>
<body>
    <input type="button" id="printPage" name="printPage" />
    <input type="button" id="savePage" name="savePage" />
    <iframe src="someOtherPage.html"></iframe>
</body>
</html>

How can I use Javascript to save and print someOtherPage.html when the respective buttons are clicked?

Connection
  • 349
  • 4
  • 6
  • 11

1 Answers1

1

Use the window.print() method.

Also refer to the following link for similar question and answer.

How do I print an IFrame from javascript in Safari/Chrome

Community
  • 1
  • 1
SaravananArumugam
  • 3,680
  • 6
  • 33
  • 45