JavaScript DHTML/Node Operation/insertAdjacentText

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

"insertAdjacentText()" Example

   <source lang="html4strict">
   

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

  var myText = "Some Sample Text";
  document.all.myDiv.insertAdjacentText("afterBegin", myText); 

} </script> <button onclick="function1();">Insert element</button>

www.wbex.ru

</body> </html>


     </source>