What is the meaning of Unobtrusive JavaScript?

Technology CommunityCategory: ASP.NETWhat is the meaning of Unobtrusive JavaScript?
VietMX Staff asked 3 years ago

This is a general term that conveys a general philosophy, similar to the term REST (Representational State Transfer). Unobtrusive JavaScript doesn’t intermix JavaScript code in your page markup.

Eg : Instead of using events like onclick and onsubmit, the unobtrusive JavaScript attaches to elements by their ID or class based on the HTML5 data- attributes.