Map of Flow: No sank during navigation of Interaction Design: Bit Fall

JavaScript does not intrusive

In Discuss the Digital Access is rolling a thread on javascript that works in browsers without support in the javascript.

How so?

Simple, to make data generated via javascript function even if there is support for javascript.

Not to be confused with non-obstructive or unobstructive, because that is the layers, mix CSS with HTML in JavaScript.

Some people use browsers that do not support javascript, others disable for security reasons or for some other reason whatever, who knows a firewall that blocks javascript instructions, some companies are using this trick to reduce the amount of backdoors and spyware that are spread across the network after some internal click wrong address.

The easiest way to circumvent this situation is to add option for the browser without support javascript read.

Example:

1 - <script type="text/javascript" src="menu.js"> </ script>
2 - <noscript>
3 - <ul>
4 - <li> <a href="/"> Home </ a> </ li>
5 - <li> <a href="/sobre-a-empresa/"> About Us </ a> </ li>
6 - <li> <a href="/contato/"> Contact </ a> </ li>
7 - </ ul>
8 - </ noscript>

In this classic example, line 1 is the call to the menu via a javascript command within the file "menu.js" contains the lines 3 to 7, which is done is the use of the element <noscript>. What is the moral of the story?

<noscript> The element is used to define an alternate content if the script does not run.

Detail: It is only supported on browsers that recognize the tag script, but that do not support this tag.

The W3Schools has another example to be given.

Leave a Reply

Close
E-mail It