...

View Full Version : Effects of disabled Javascript??



easypeasy
07-20-2009, 05:37 PM
Quick question...

What happens if a portion of your page is coded with Javascript and the user viewing your page has Javascript disabled. Will the Javascript simply be ignored and the rest of the page still appear? Or will they run into an error and not see anything at all?

THANKS!

Philip M
07-20-2009, 05:49 PM
The Javascript will simply be ignored but the rest of the page will appear.

See:-
http://www.sitepoint.com/blogs/2007/02/23/handling-javascript-disabled-browsers/


Quizmaster: What was the date of the Battle of Hastings?
Contestant: Was it 1974?

fside
07-20-2009, 07:55 PM
Quick question...

What happens if a portion of your page is coded with Javascript and the user viewing your page has Javascript disabled.

THANKS!

I view websites that way - all the time! If there's a plea to turn on script, or it's obvious that something won't load without, I turn on each script until the page works. I use the addon, NoScript, in Firefox. Many, many people do.

Even worse - what if the viewer had switched off or substituted their own style sheet?

It's best to first design the page with both styles and Javascript disabled. Then add styles to get the look and layout. Add Javascript for the behaviors, such as loading this video clip or that. If Javascript is important, you can optionally leave a little message say at the top of the screen that - this site uses Javascript for more advanced features - or some such. You can put it in a noscript tag.

Philip M
07-20-2009, 09:02 PM
I have the idea that the average user has no idea how to disable Javascript, or has ever contemplated doing so, nor would have a clue why this might be a good/bad idea.

According to http://www.w3schools.com/browsers/browsers_stats.asp,
in January 2000 20% had Javascript disabled, in January 2008 only 5%. But I don't know how reliable these figures are - after all, research has shown that 87.34% of all statistics are simply made up. :D



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum