[Greasemonkey] How to check whether a page has keyboard handler attached?

Anton Berezin tobez at tobez.org
Tue Oct 25 13:43:16 EDT 2005


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


More information about the Greasemonkey mailing list