devxlogo

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

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.

 

devx-admin

Share the Post: