addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobe--smallglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1launch-new-window--smalllight-bulblinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Unobtrusive Javascript WHY?

From: Aoirthoir An B.
Sent on: Thursday, August 7, 2008 11:54 AM
Last night during our HTML/CSS Study Group, Lauryl and I were explain why standards and unobtrusive javascript are so important. In particular we focused on folks that feel the need to change a regular link into a JavaScript command.

Why is this bad practice? Because it takes control away from perfectly capable users. This just now struck home as a user in our office wanted to print a tracking page for a shipment but could not. Why not? The company had decided that links to tracking pages would use the JavaScript method instead of the standard <a href= HTML element. In addition, they had determined, that it should create a popup. Finally, that this popup should have no menus, buttons, address bar, or anything else that we, as users, need. Thus it was impossible in their window to print the tracking page.

Yes, I can and will change this users settings (and all of the others) to ensure that no site can do this in the future. Nevertheless it is something I should not have to do.

Hopefully this illustrates one more example for the group from last night, as to why it is really important to use Unobtrusive JavaScript, and why you should stay out of the users way as much as posisble.

Kind Regards,
Joseph James Frantz

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy