Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessibility - bypassing navigation menu 1

Status
Not open for further replies.

sheister

Programmer
Apr 29, 2008
3
GB


I was wondering if anyone knew how to allow a user, who is accessing the website through a keyboard, to bypass my navigation menu if they want to?

Code:
<div id="leftSidebar">
<div id="menu">
<ul>
<li><a href="main.html">Home</a></li>
<li><a href="page2_symptoms.html">Symptoms</a></li>
<li id="active"><a href="page3_causes.html">Causes</a></li>
<li><a href="page4_stressManagement.html">Stress Management</a></li>
<li><a href="page5_contact.html">Contact Us</a></li>
</ul>
</div>
</div>

Any help would be greatly appreciated.
Thanks.

 
Google (or otherwise search) 'Access keys' or 'html access keys'.
(I haven't used them).

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
Code:
<a href="#mainContent">Jump to main content</a>

... lots of nav here ...

<h1 id="mainContent">Welcome to my content...</h1>

It doesn't have to be an H1 - it can be any element.

Hope this helps,
Dan

P.S. If you want it to work in IE 5.0 (which I personally wouldn't worry about), or early versions of Opera (see previous note ;-)), then you'll have to use the "<a name...>" syntax instead.



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Sorry - I pretty much answered the opposite of the question. [blush]

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top