unobtrusive js IE problem
I am just learning js and was able to do a few things, but I was then recomended by Raffles that I should be using unobtrusive js, so I started working on it but I got stuck on the IE attachEvent, can someone point me in the right direction?
here is my code
name: <input id="test" name="test" type="text" size="50" maxlength="50"/>
var target = event.target;
target.style.background = "#FFFF00";
myvar.addEventListener('change', format, false);
else if (myvar.attachEvent)