This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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: 60810

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] [Bear's FrontMan] [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
Similar Threads
how to check if image is loaded or not
Grails > RichUI Plugin > CheckedTreeView
Data preservation
difference between body onLoad and window.onload
Very urg help me