blob: ee1b02d3e581d982ade7421c3bfff0ed40923dad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<!DOCTYPE html>
<html reftest-print-range="selection">
<head>
<meta charset="utf-8">
<link href="print.css" rel="stylesheet">
<script>
function selectNodeById(id) {
var node = document.getElementById(id);
var rng = document.createRange();
rng.selectNode(node);
window.getSelection().addRange(rng);
}
</script>
</head>
<body onload="selectNodeById('selection')">
<p>This text should not be there</p>
<p id="selection">This text should appear on page 1</p>
<p>This text should not be there</p>
</body>
</html>
|