Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in SCR35 #4020

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion techniques/client-side-script/SCR35.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h3>Link that runs a script and has no fallback for non-scripted browsers</h3>
</section>
<section class="example">
<h3>Link that runs script, but navigates to another page when script is not available</h3>
<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>
<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 dostuff.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>

<pre xml:space="preserve"><code class="language-html">&lt;script&gt;
function doStuff() {
Expand Down