'scripts' Example : scripts : Javascript Collections JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Javascript Collections » scripts »

 

'scripts' Example



    
<html>
<body>
<button onclick="getTotal();">Get total script tags</button>
<script language="JavaScript">
    function getTotal() {
        var m = document.scripts.length; 
        alert(m);
    }
</script>
<script language="JavaScript"></script>
<script language="JavaScript"></script>

<script language="JavaScript"></script>

<script language="JavaScript"></script>

<script language="JavaScript"></script>

<script language="JavaScript"></script>
</body>
<script language="JavaScript"></script>

<script language="JavaScript"></script>

<script language="JavaScript"></script>

</html>

    
      
      



-

Leave a Comment / Note


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

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Javascript Collections
» scripts