This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring 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: 63540

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.
subject: What is Obtrusive Javascript
jQuery in Action, 3rd edition