March 29, 201016 yr I know this has probably been asked before, and maybe this is in the wrong topic... but what would you do if JavaScript were disabled in a browser? I'm creating a jQuery rich website, with many scripts such as this : http://nivo.dev7studios.com/ in it. If JavaScript were disabled... would my site be fully dis-functional? I'm even implementing jQuery into the menu. Would I have to design two sites? Any help is appreciated. Kieran.
March 29, 201016 yr Hi, RUN AWAY!!! Only kidding. What you should do is create your website in pure XHTML and CSS, so it functions well in all browsers and does a nice job without any bells and whistles, while still achieving its goals and then add your JavaScript/jQuery. That way it will degrade gracefully. Hope this helps. EDIT: Oh and you could put a JavaScript function in that displays a message on page load, saying to people with JavaScript disabled, 'This website requires JavaScript enabled to get the full experience. Please enable JavaScript within your browser settings', or something along those lines. EDIT: I mean the <noscript> tag. Thanks notbanksy.
March 29, 201016 yr Author Ahh ok, I'll try it that way. However, If I use some jquery things like slide-shows.. wouldn't it just leave a load of images one after each other going down the page? This is most confusing
March 29, 201016 yr Nope, it's the jQuery that pulls the images from a directory or XML file right? Or are they actually on the page in the HTML? Have the site without the slide show, then add it later with jQuery.
March 29, 201016 yr EDIT: Oh and you could put a JavaScript function in that displays a message on page load, saying to people with JavaScript disabled, 'This website requires JavaScript enabled to get the full experience. Please enable JavaScript within your browser settings', or something along those lines. Oxymoron alert! You can't have a js function that detects when js is disabled! You could use the <noscript> tag though...
March 29, 201016 yr It's just a HTML tag that you put a message in. <noscript>Message to user</noscript>
March 29, 201016 yr Author I see... is this a valid tag though? It won't affect my SEO? (I'm a noob on this kinda stuff sorry)
Create an account or sign in to comment