I just learned that alert() is a method of the window object. I also just learned that getElementById() is a method of the document object.
Is there a place where I can find documentation as to what methods belong to certain objects?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try the Mozilla Developer Network documentation. It’s quite good.
For example, you can find documentation on the both
windowobject and thedocument.getElementById()method.For a quick sandbox to try stuff out, you could try jsFiddle, or even just the JS console in Google Chrome (ctrl+shift+j).