Subj. I tried if (body.onkeydown) ... if (body.onkeypress) ... if (typeof body.onkeypress != undefined) ... and variants, but that did not seem to work. \Anton. -- An undefined problem has an infinite number of solutions. -- Robert A. Humphrey