[Greasemonkey] [Help]How to replace an js method or event?
Jeremy Dunck
jdunck at gmail.com
Wed Oct 5 12:08:08 EDT 2005
On 10/5/05, weide <wideweide at gmail.com> wrote:
> dear all,
> When I visit a site in firefox,the onkeydown is not available,so I try
> to write a js in greaseMonkey,but there is some problem.
>
window.event is only available in IE.
Also, this won't work:
"else kCode = e.which ;"
because there is no e.which property.
Apparently your function is using some extra context we don't know about.
bookpage, prevpage, nextpage are something page-specific too...
If you can share the page you're working with, that's best.
If not, we can keep guessing what's actually going on here.
At the risk of sounding pandering, DHTML Utopia is a recent book with
some sample chapters covering what you're dealing with here.
On this page,
http://www.sitepoint.com/books/dhtml1/
look for "Send me sample chapters".
More information about the Greasemonkey
mailing list