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


JAVASCRIPT DHTML TUTORIALS » Node Operation » findText »

 

'findText()' Example



    
<html>
<body>
<script language="JavaScript">
function function1() {
    var m = document.body.createTextRange();
    m.findText('"test"');
    m.select(); 

</script>
<p>Search the "test" word in this paragraph</p>
<button onclick="function1();">Find test</button>
</body>
</html>

    
      
      



-

Leave a Comment / Note


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

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Node Operation
» findText