<!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.01   Transitional//EN ">
<html>
    <head>
    <meta   http-equiv= "content-type "   content= "text/html;   charset=windows-1250 ">
    <meta   name= "generator "   content= "PSPad   editor,   www.pspad.com ">
    <title> </title>
    <script   language=javascript>
        window.onload=function(){
            var   o=document.getElementById( "a ");
            var   eles=o.childNodes;
            //alert(eles.length);
            for(var   i=0;i <eles.length;i++){
                var   e=eles[i].childNodes[0];
                alert(e.data);
                //for(var   p   in   e){
                //     alert(   p+ ": "+e[p]);
                //}
            }
       
        }
    </script>
    </head>
    <body ">
<div   id= "a ">
<p>   Node   in   p </p>
<h1> node   in   h1 </h1>

</div>
    </body>
</html>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2021-11-09
  • 2021-07-27
  • 2021-11-15
  • 2022-01-01
  • 2021-08-14
猜你喜欢
  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
  • 2021-08-22
  • 2022-02-07
相关资源
相似解决方案