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


JAVASCRIPT DHTML TUTORIALS » Node Operation » substringData »

 

'substringData()' Example



    
<html>
<body>
<script language="JavaScript">
function function1() {
    var range = document.all.myP1.firstChild;
    var m = range.substringData(510);
    alert(m)

</script>
<p id="myP1">This is a sample text.</p>
<input type="button" value='Extract data from to 10' 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
» substringData