gecko-dev/dom/base/crashtests/149320-1.html

16 строки
394 B
HTML
Исходник Обычный вид История

2009-02-11 03:36:04 +03:00
<html>
<head>
</head>
<body>
<div>Selection is HERE only</div>
<script type="text/javascript">
selectedNode = document.getElementsByTagName("div").item(0);
testRange = document.createRange();
testRange.setStart(selectedNode, 13);
testRange.setEnd(selectedNode, 17);
document.body.appendChild(document.createTextNode("Text of Range: "+testRange));
</script>
</body>
</html>