attachEvent Method test sample