JavaScript DHTML/Node Operation/substringData — различия между версиями

Материал из Web эксперт
Перейти к: навигация, поиск
м (1 версия)
 
(нет различий)

Версия 13:02, 26 мая 2010

"substringData()" Example

   <source lang="html4strict">
   

<html> <body> <script language="JavaScript"> function function1() {

   var range = document.all.myP1.firstChild;
   var m = range.substringData(5, 10);
   alert(m); 

} </script>

This is a sample text.

<input type="button" value="Extract data from 5 to 10" onclick="function1();"> </body> </html>


     </source>