Meaningless Drivel is fun!
The moose likes HTML, CSS and JavaScript and the fly likes onKeyUp event not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "onKeyUp event not working " Watch "onKeyUp event not working " New topic

onKeyUp event not working

Gihan Pandigamage
Ranch Hand

Joined: Aug 23, 2009
Posts: 60
Dear Friends,
In the following code the removeUnsupportedChar() javascript funtion not calling when onKeyUp event fires. Why is that?

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32649

It works on my machine (Safari on Mac) More specifically, I get the "hello' alert continually. Which looks like it is because onBlur is called too. Maybe textCounter() does something that prevents the code from continuing. I recommend checking your JavaScript console for errors.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Gihan Pandigamage
Ranch Hand

Joined: Aug 23, 2009
Posts: 60
I'll check my other JS codes. Thanks
I agree. Here's the link:
subject: onKeyUp event not working
It's not a secret anymore!