I\'m having a real problem with JavaScript scope in IE 9.
This is inside the body of my document (yes, I realize script should go in the head for proper HTML, but I\
I was having a similar issue with a property being null or undefined.
This ended up being that IE's document mode was being defaulted to IE7 Standards. This was due to the compatibility mode being automatically set to be used for all intranet sites (Tools > Compatibility View Setting > Display Intranet Sites in Compatibility View).