Why does innerHTML^=1 work in onclick , although the idea should be this.innerHTML^=1 ?
/* ignore css */ p { float: left; font-size: 4em; width: 2em; line-height: 2em; border: 1px solid; text-align: center; margin: 0; cursor: pointer; background: silver; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } p + p { margin-left: .125em; } <p onclick=innerHTML^=1>0 <p onclick=this.innerHTML^=1>0
with(this). - vp_arthwith- Grundy