Hacker News new | ask | show | jobs
by jonprins 5492 days ago
This happens when you listen to and then improperly handle keyboard events.

Somebody probably just copied a script from w3schools and smashed their face into it for a few hours until it did some approximation of what they might have maybe wanted it to do.

Unfortunately, the buckshot approach to software development leaves a lot to be desired. Especially when you start with such a horrible original product as w3schools.

2 comments

These are fairly professional sites, though, run by otherwise decent designers and programmers. I think it's more that they adopted an incomplete jQuery plugin, and didn't fully consider the repercussions of changing standard browser controls. That's happened a lot in the past few years... people customize select menus, checkboxes, etc. that are customized (mainly in appearance) with javascript and CSS, and then lost a lot of the native functionality. It produces problems that are reminiscent of why people turned on Flash sites... hopefully the progress of HTML 5 and CSS3 will help this situation, by providing a standard way to do things that have need custom hacks in the past.
Are there any decent alternatives to w3schools? I have to introduce somebody to very basic web-development and would hate to have to point them to a resource as bad as w3schools.

Edit: I just found this excellent SO link on the topic: http://stackoverflow.com/questions/4662304/online-html-css-j...

When I was entirely starting out, I found the tutorials at tizag.com to be helpful.