About: Unobtrusive JavaScript   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

Obtrusive JavaScript has no non-JavaScript alternative and therefore renders a feature inaccessible to users with JavaScript disabled or unavailable in their browsers. Such users include the visually impaired (who use special browsers) and employees of corporations which strip JavaScript from pages and/or disable it in the browser for security reasons. The first step to unobtrusive JavaScript is to build the page without client-side scripting, and make sure it works. Any server-side logic that JavaScript will need to use should be kept in separate script files than the alternative pages. };

AttributesValues
rdfs:label
  • Unobtrusive JavaScript
rdfs:comment
  • Obtrusive JavaScript has no non-JavaScript alternative and therefore renders a feature inaccessible to users with JavaScript disabled or unavailable in their browsers. Such users include the visually impaired (who use special browsers) and employees of corporations which strip JavaScript from pages and/or disable it in the browser for security reasons. The first step to unobtrusive JavaScript is to build the page without client-side scripting, and make sure it works. Any server-side logic that JavaScript will need to use should be kept in separate script files than the alternative pages. };
sameAs
dcterms:subject
dbkwik:javascript/...iPageUsesTemplate
abstract
  • Obtrusive JavaScript has no non-JavaScript alternative and therefore renders a feature inaccessible to users with JavaScript disabled or unavailable in their browsers. Such users include the visually impaired (who use special browsers) and employees of corporations which strip JavaScript from pages and/or disable it in the browser for security reasons. The first step to unobtrusive JavaScript is to build the page without client-side scripting, and make sure it works. Any server-side logic that JavaScript will need to use should be kept in separate script files than the alternative pages. Next, you need to make some JavaScript run after the page is loaded which modifies the page with event-listeners. This involves finding the elements to modify (usually with <a href="/mediawiki/Document#getElementById" title="Document">document.getElementById</a>) and assigning to their "on[...]" properties, for example "onclick". After you complete the first step, all your links should look like this: We need an ID to find it with, so... Now we can JS-enable that link when the page loads: document.getElementById('fez').onclick = function (){heresALink(this.href); return false; };
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software