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!

Best practice Javascript disabled 1

Status
Not open for further replies.

ClulessChris

IS-IT--Management
Jan 27, 2003
890
GB
What's best practice for handeling browsers with JS disabled?

My site uses JS for navigation 'fly out' menues. But if js is disabled then navigation is too.

I considered a div with a warning message on the main page that would be hidden with JS where enabled, but thought I check to see how you guys do it.

thanks

Never knock on Death's door: ring the bell and run away! Death really hates that!
 
javascript should only be used as an add-on for navigation. if your menu looks like this:

[tt]About
Contact[/tt]

and if mousing-over or clicking "About" yields:

[tt]About
- Home Life
- Work Life
- Resume
Contact[/tt]

then as you mentioned the "Home Life", "Work Life" and "Resume" pages will not be accessible if JS is disabled. For this reason, you should have links to "Home Life", "Work Life" and "Resume" on the "About" page. Clicking the "About" link with javascript disabled should bring you to the "About" page, where you can then select from the other three pages.

Hope this makes sense. I kind of rambled but I think you'll get the idea.

 
Many thanks for your input.
I guess I should have asked this question some time back.

This is my first attempt at a website I've used bookmarks with hover over events to show 'fly-out' menues. This was a method I picked up from
I can see the logic of your reply, but this will mean a little re-structureing of the site (job for next releace I think).

Never knock on Death's door: ring the bell and run away! Death really hates that!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top