primelens — 2012-05-20T00:04:22-04:00 — #1
I'm referencing the object or object handle incorrectly, is that what 'this.' is called ?
I put together a super simple page demonstrating my ravings and my question using spinning colored boxes.
LINK (see source)
greenbox and #greybox essentially have the same code.
One uses this. and the other uses the var orangehandle
Many thanks in advance
aufshebung — 2012-05-20T02:00:28-04:00 — #2
The problem is you're trying to get the element by its ID... before it's been created.
The absolute quickest fix is to just put the <script> tag after the #orangebox element:
var orangevar = document.getElementById("orangebox");
primelens — 2012-05-20T15:00:15-04:00 — #3
TIL something about parsing