Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

JavaScript disabled?

Featured Replies

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.

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. :)

  • 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 :(

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.

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...

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.