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: david at dorward.me.uk (David Dorward)
- Subject: [Javascript] Check if an element exists in the DOM
- Date: Wed Oct 18 07:59:27 2006
On Wed, Oct 18, 2006 at 02:49:59PM +0200, Simone Fumagalli wrote:
> How do I check if an element with id="XYZ" is present in my page/DOM ?
if (document.getElementById('XYZ')){ ... }
--
David Dorward http://dorward.me.uk
- Follow-Ups:
- [Javascript] Check if an element exists in the DOM
- From: Simone Fumagalli
- [Javascript] Check if an element exists in the DOM
- References:
- [Javascript] Check if an element exists in the DOM
- From: Simone Fumagalli
- [Javascript] Check if an element exists in the DOM
- Prev by Date: [Javascript] Check if an element exists in the DOM
- Next by Date: [Javascript] Check if an element exists in the DOM
- Previous by thread: [Javascript] Check if an element exists in the DOM
- Next by thread: [Javascript] Check if an element exists in the DOM
- Index(es):