Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Web
Expertise: All
Apr 28, 1999

Count the Number of Script Objects on Your Page in Visual InterDev 6

Since the Visual InterDev Scripting Object Model wraps all its script objects inside a huge HTML Form, you can count the number of form elements using the form's length property. However, you can only get an accurate reading of the number of elements after the HTML page has been rendered. Use this script at the end of the page or in an onload event.
 
<SCRIPT LANGUAGE=javascript>
document.write(document.thisForm.length)
</SCRIPT>
Ken Cox
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date