Results 1 to 3 of 3

Thread: Javascript Browser Support

  1. #1
    Join Date
    Dec 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Javascript Browser Support

    Hi,

    I have begun learning Javascript & JQuery over the past few months. I remember years ago when I looked at JS, it wasn't great to use due to lack of JS support on some browsers and it being turned off in settings on others that did support.

    Just wondering if there is any issue these days, I know ppl can still turn it off, but I guess with all the sites using JQuery that this isnt as big a deal/issue as it used to be.

    Is there a way to place a redundancy for when JS is not enabled?

    Barry
    Last edited by Barryt06; 01-30-2012 at 06:37 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You're right. It's not as big of an issue. Today's browsers all support javascript and almost everyone has it turned on. With jQuery, most differences between browsers' javascript engines are already worked out for you.

    For those few without javascript, look for scripts that use ordinary HTML. For example, a menu that uses ordinary links in the markup and transforms them into a cool menu using javascript. Generally with that sort of setup non-javascript users can still see and use the links, it just won't look as fancy. Or an image gallery that takes ordinary img tags from the markup and transforms them into a slideshow or something. Non-javascript users can still see the images.

    Sometimes scripts like that come with style that hides the links or images even when javascript is disabled. Often a script like that can be tweaked to allow non-javascript users to see that content.

    If you find a script that you really like but it has no built in non-javascript fall back like that, you can always place alternate non-javascript content inside:

    HTML Code:
    <noscript></noscript>
    tags.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Dec 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you very much John. I completely forgot about the noscript tags.

    Cheers

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •