Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript and the DOM (Retiring) The Browser Environment Thinking Globally

Using Microsoft Edge. I receive console error: Object doesn't support property or method 'getElementByID'.

When I key document.getElementByID('myHeading').style.color = 'purple' I receive an error message stating 'Object doesn't support property or method 'getElementByID'. I am using Microsoft Edge instead of Chrome.

2 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! According to your question you are typing getElementByID, but it should be getElementById. Note the capitalization differences in "ID" and "Id".

Hope this helps! :sparkles:

OMG, so embarrassing. I need to slow down typing. That is exactly it. Thank you!!!