Re: How do I get the object type from document.all?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: How do I get the object type from document.all?

From: seans <seanss01@yahoo.com>
Date: Sun Aug 14 2005 - 14:06:59 CEST

Hi Rob.

Thanks for your help. This seems to work.

if (document.all['elementID'].len­gth) { // we have an array

  }
  else { // we have a single object

  }

cheers,

sean
Received on Mon Oct 24 02:14:05 2005