add get target function on event html