Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Check if an element exists in the DOM


  • From: simone at tomato.it (Simone Fumagalli)
  • Subject: [Javascript] Check if an element exists in the DOM
  • Date: Wed Oct 18 08:03:46 2006

David Dorward wrote:
> On Wed, Oct 18, 2006 at 02:49:59PM +0200, Simone Fumagalli wrote:
> if (document.getElementById('XYZ')){ ... }

Yes, this works.
But I would like to use the prototype's syntax $('objID')

Is this possible ?

Simone