-
-
Save slieschke/b9c2a608181d965f34d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Test</title> | |
<script src="iepp.js"></script> | |
<script> | |
function doPrint() { | |
window.print(); | |
} | |
</script> | |
</head> | |
<body> | |
<a href="#" onclick="doPrint();return false">Print</a> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Test</title> | |
<script src="iepp.js"></script> | |
<script> | |
function doPrint() { | |
window.frames['foo'].focus(); | |
window.frames['foo'].print(); | |
} | |
</script> | |
</head> | |
<body> | |
foo | |
<a href="#" onclick="doPrint();return false">Print</a> | |
<iframe name="foo" src="child.html" style="vertical-align: top"></iframe> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment