RetroZilla/layout/html/tests/printer/js/print_from_onload.html

46 lines
628 B
HTML
Raw Normal View History

2015-10-21 05:03:22 +02:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Print from onLoad handler</title>
<script>
function myload()
{
window.print();
}
</script>
</head>
<body onload="myload()">
<a href=link.html>Link</a>
This is some body text.
line 1<br>
line 2<br>
line 3<br>
line 4<br>
line 1<br>
line 2<br>
line 3<br>
line 4<br>
<hr>
line 5<br>
line 6<br>
line 7<br>
line 8<br>
line 9<br>
line 10<br>
line 1<br>
line 2<br>
line 3<br>
line 4<br>
line 5<br>
line 6<br>
line 7<br>
line 8<br>
line 9<br>
line 10<br>
line 11<br>
line 12<br>
line 13<br>
line 14<br>
line 15<br>
</body>