By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,653 Members | 1,276 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,653 IT Pros & Developers. It's quick & easy.

What happened to DHTML behaviors?

P: 1
I remember a long time ago about a technology called "behaviors" that allowed you to define a, well, behavior for HTML elements. A way of defining a template for reacting under javascript events and stuff like that. For example, making all buttons on a website toggle between colors onMouseOver and display an alert onClick just by assigning them the behavior myExample1. This helped a lot for code reuse.

I thought the proposal had future (although it needed refinement) and eagerly waited for it to turn into a standard, but it didn't seem to catch on. All I can find googling are Microsoft references to their implementation in IE5.5 (they seem to have been the inventors).

Why wasn't it successful? What is your opinion on the matter, don't you find it useful?
Nov 7 '19 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 5,390
it was not successful because its pointless since it is not something that HTML has to provide. HTML is a document markup language - so it does 'markup' some content in a semantic way. CSS is used to let it appear to your preferences and JavaScript is used for the 'behaviour'. Mixing things up at this level - as it sometimes happend in the old days - was thankfully corrected.

what you probably have in mind here is more something like seeing a webpage as an application instead of a document (what it basically is and always was). Its an obvious thought that it should be possible to have 'customized' components (or lets better call it widgets) that you can use in your web-applications - and this is what web components are for - or what other (mainly) JavaScript libraries or frameworks provide you with or letting you create.
Nov 7 '19 #2

Post your reply

Sign in to post your reply or Sign up for a free account.