event as html attribute and register with a default handler