Accessing Document Contents : Timer : Development JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Development » Timer »

 

Accessing Document Contents



<HTML>
<HEAD>
<TITLE>Accessing Document Contents</TITLE>
<SCRIPT LANGUAGE="JavaScript"><!--
function createSummary() {
 win2 = open("","window2")
 win2.document.open("text/plain")
 win2.document.writeln("Title: "+document.title)
 win2.document.writeln("Links: "+document.links.length)
 win2.document.writeln("Anchors: "+document.anchors.length)
 win2.document.writeln("Forms: "+document.forms.length)
 win2.document.writeln("Images: "+document.images.length)
 win2.document.writeln("Applets: "+document.applets.length)
 win2.document.writeln("Embeds: "+document.embeds.length)
 win2.document.close()
}
// --></SCRIPT>
</HEAD>
<BODY>
<A NAME="#top"></A>
<form>
<INPUT TYPE="BUTTON" NAME="Help" VALUE="Help"  ONCLICK="alert('Click one of the above images.')">
</FORM>
<SCRIPT LANGUAGE="JavaScript"><!--
setTimeout("createSummary()",5000);
// --></SCRIPT>
</BODY>
</HTML>

           
       



-

Leave a Comment / Note


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

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Development
» Timer