![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.javascript archiveRe: Check if object exists?
From: [on] <switchable@gmail.com>
Date: Thu Apr 13 2006 - 12:00:50 CEST
Chris Ashley wrote:
So the element with the id "product" might not exist ?
var productElement = document.getElementById("product");
productElement should now either be the element or null, if it's null
so:
<code>
|