JavaScript Reference/Javascript Methods/getBookmark
Версия от 18:30, 25 мая 2010; (обсуждение)
"getBookmark()" Example
<html>
<body>
<script language="JavaScript">
function function1() {
var m = document.body.createTextRange();
var n = m.getBookmark();
m.moveToBookmark(n);
m.findText("samp");
m.select();
}
</script>
<p>This is some sample text.</p>
<input type="button" value="Select samp" onclick="function1();">
</body>
</html>
"getBookmark()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |TextRange |
+----------------+--------------------------------------------------------------+
"getBookmark()" Syntax, Parameters and Note
Note:
Get a bookmark.
Syntax:
textRangeName.getBookmark()