43: The principles of unobtrusive JavaScript

Forums » Dev.Opera » Archived Article Discussions

This topic has been closed. No new entries allowed.

Reason: You can now post comments on articles on Dev Opera

Forum rules and guidelines

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

3. February 2009, 06:38:38

ppkoch

Posts: 0

43: The principles of unobtrusive JavaScript

Unobtrusive JavaScript refers to JavaScript that is used to enhance usability and improve the user experience on a web site, but isn't essential for functionality to work. The web site should work ok when JavaScript isn't supported in the user's browser, which will be the case with some users. In this article PPK explores the concept fully, providing multiple examples to help you master it.

( Read the article )

11. February 2009, 15:39:02

AndBre

Posts: 25

Typo: "far easier to maintain that scripts that"

16. February 2009, 00:15:12

Moderator

patrickhlauke

Posts: 29

although it's probably not the point of the article, i'd suggest a slight simple change.

window.open(this.href,'popup','arguments');
return false;

now, i haven't checked if this is still relevant, but i used to traditionally only return false if the window.open has indeed succeeded in popping up a new window and the function returns true...so something like

return !window.open(this.href,'popup','arguments');

(but i can see how this may confuse readers just starting out...though it could be added as a note or something?)

13. July 2009, 08:21:51

skyasdasdm1980

Banned user

Just made an account only to say that the "The third category will be treated in a separate article." link does not go anywhere. Well, to a 404 page anyway...

Forums » Dev.Opera » Archived Article Discussions