By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,256 Members | 1,663 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,256 IT Pros & Developers. It's quick & easy.

What does 'object has no properties' really mean

100+
P: 110
Firefox often tells me that one of my objects has no properties; and, I really don't know how to respond.
Expand|Select|Wrap|Line Numbers
  1. //code line:
  2. document.getElementById("nearWater").focus();
  3.  
  4. //error message:
  5. document.getElementById("nearWater") has no properties
  6.  
Can anyone shed some light on what it really wants?
Jan 9 '09 #1
Share this Question
Share on Google+
1 Reply


gits
Expert Mod 5K+
P: 5,390
basicly it says that:

Expand|Select|Wrap|Line Numbers
  1. document.getElementById("nearWater")
doesn't return you what you expect ... probably a null-value because the element doesn't exist or doesn't exist in this context or might not be reday to be retrieved ...

kind regards
Jan 9 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.