You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: techniques/client-side-script/SCR35.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ <h2>Examples</h2>
25
25
<sectionclass="example">
26
26
<h3>Link that runs a script and has no fallback for non-scripted browsers</h3>
27
27
<p>This approach should only be used when script is relied upon as an Accessibility Supported Technology.</p>
28
-
<p>Even though we do not want to navigate from this link, we must use the href attribute on the <code>a</code> element in order to make this a true link and get the proper eventing. In this case, we're using <code>"#"</code> as the link target, but you could use anything. This link will never be navigated.</p>
28
+
<p>Even though we do not want to navigate from this link, we must use the <code>href</code> attribute on the <code>a</code> element in order to make this a true link and get the proper eventing. In this case, we're using <code>href="#"</code> as the link target, but you could use anything. This link will never be navigated.</p>
29
29
<p>The "<code>return false;</code>" at the end of the <code>doStuff()</code> event handling function tells the browser not to navigate to the <abbrtitle="Uniform Resource Identifier">URI</abbr>. Without it, the page would refresh after the script ran.</p>
0 commit comments