Does addEventListener and onattach exsits at the same time?