summaryrefslogtreecommitdiffstats
path: root/toolkit/components/printing/tests/file_window_print_another_iframe_and_remove.html
blob: c4d176f39e79ffdc93ad3946ce737af585d465fc (plain)
1
2
3
4
5
6
7
8
9
10
<!doctype html>
<meta charset="utf-8">
<script>
function handlePrint() {
  frames[0].frameElement.style.display = "none";
  frames[1].print();
}
</script>
<iframe srcdoc='<button onclick="parent.handlePrint()">Print the other iframe, then hide me</button>'></iframe>
<iframe id="iframe2" srcdoc="Print me"></iframe>