File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes What is Obtrusive Javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "What is Obtrusive Javascript" Watch "What is Obtrusive Javascript" New topic

What is Obtrusive Javascript

sadagi korbu

Joined: Aug 16, 2006
Posts: 21

Can anyone explain me , "What is Obtrusive Javascript" and where is it used? If there is some useful online link available, please share.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63870

Did you mean "Unobtrusive JavaScript"?

If so, it's the technique where JavaScript is not mixed into the HTML markup, but is completely sequestered in the header and in external JS files. It's the same idea as using CSS for styling, moving style out of the markup and into stylesheets.

In this way the three parts of each page: structure, style and behavior are separated and not all munged together in the markup.

You can do it without the help of any library, but libraries such as jQuery make it easier to accomplish.

[Asking smart questions] [About Bear] [Books by Bear]
sadagi korbu

Joined: Aug 16, 2006
Posts: 21
Thanks, You cleared my doubt.
I agree. Here's the link:
subject: What is Obtrusive Javascript
It's not a secret anymore!