Btw, in HTML5 class name handling is easier through the DOMTokenString interface, you just write: element.classNames.add("somethingThatIsOnlyVisibleOnScreen") /olav