1995parham-teaching/ie-lecture

slide code mismatch with what the demo button really does in javascript lecture!!

Closed this issue · 1 comments

Hi! In 47.2, I expect the onclick="document.body.style.backgroundColor = this.innerHTML;" for Green button to change the background color of the body as the code declares, but when I click it here: 47.3, it just changes its own color:
Screenshot (763)

I suggest that we change 47.2 to: onclick="this.style.backgroundColor = this.innerHTML;"

Thanks for mentioning this. I have fixed it.