Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is Obtrusive Javascript

 
sadagi korbu
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

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

Sadagi
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64970
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
sadagi korbu
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, You cleared my doubt.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic