simulate dom event across browser