Avoid behavioral code in HTML; move to JS.