event registration across browsers