<div id="theDiv"></div>
document.getElementByid('theDiv').myProperty='myValue';
if('undefined'!==typeof document.getElementById('theDiv').myProperty){
Is it ok and cross browser compatible to give DOM objects custom properties to be used later on?
If the properties only need to be set and retrieved via javascript can this be used instead of setAttribute / getAttribute?