Thread
:
Javascript: How do I check if a var is null or hasn't been set??
View Single Post
12-08-2005, 03:53 AM
J.P.
Confirmed User
Join Date: Jun 2004
Posts: 689
try this:
Code:
if (typeof myvar = = "undefined") { // do something - or nothing :) }
this should solve your problem...
of course, drop the space between = and =
__________________
Webmasters!
Looking for new affiliate programs to promote?
Affiliate Program Search
<-- Search for programs with FHGs, RSS feed, specific niche sponsors, ...
Last edited by J.P.
; 12-08-2005 at
03:56 AM
..
J.P.
View Public Profile
Visit J.P.'s homepage!
Find More Posts by J.P.