Detect if a form is visible or not
<p>I have this scenario, I am detecting all forms on a site: <code>document.forms</code></p>

<p>And I am trying to detect which forms are visible and which are not visible.</p>

<pre><code>var formElement = []
for (i=0,l=document.forms.length;i&lt;l;i++){
   var formIndex = document.forms.item(i);
   if (&lt;need here just visible forms&gt;){
       formElement.push(formIndex);
  }
}
</code></pre>

<p>Just to say I am doing this over an other pop up window that is communicating with the browser window with that forms, this depends on jQuery being present on the host site so jQuery is not a solution.</p>

<p>What is the best way to do this.</p>
