'getBookmark()' Example : getBookmark : Node Operation JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Node Operation » getBookmark »

 

'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>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Node Operation
» getBookmark