faqts : Computers : Programming : Languages : JavaScript : Forms

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 12 people (58%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

How can i find the number of forms in my parent window?

Aug 27th, 2003 01:20
Hans Bieleman, Radhika Ghadge,


To find the parent window use:
  parentWindow = window.parent;

To find the number of forms on a page use:
  noOfForms = document.forms.length;

And yes, to find the number of Forms on the parent window use"
  noOfFormsOnParent = window.parent.forms.length;