- <p>This approach can be used to create sites that don't rely on script, if and only if the navigation target provides the same functionality as the script. This example is identical to the example 1, except that its <code class="language-html">href</code> is now set to a real page, dostuff.html. The sostuff.html page must provide the same functionality as the script. The "<code class="language-javascript">return false;</code>" at the end of the <code class="language-javascript">doStuff()</code> event handling function tells the browser not to navigate to the URI. Without it, the browser would navigate to dostuff.html after the script ran.</p>
0 commit comments