Grow your CSS skills. Land your dream job.

Disabled javascript

  • # December 26, 2012 at 6:10 am

    Hi All,
    If my browser is disabled javascript, then what is the way to run script without enabling it.

    # December 26, 2012 at 6:17 am

    You can’t. You can use the `noscript` tag to have something else show up though.

    # December 26, 2012 at 8:23 am

    Thanks joshuanhibbert,
    Is this the only way to deal with this issue?

    # December 26, 2012 at 9:05 am

    no here are the other 6 http://www.visibilityinherit.com/code/add-css-with-javascript.php

    # December 27, 2012 at 1:47 am

    Can I restrict user to login to my application if javascript is disabled?

    # December 27, 2012 at 1:52 am

    That’s not very nice to do but you can with noscript

    # December 27, 2012 at 7:53 am

    Why do it with no script she you can use css

    # December 27, 2012 at 7:54 am

    When JS is off you mission is not to tell them what they already know. Your mission is to make it gracefully degrade. In other words work without the bells and whistles

    # December 27, 2012 at 8:06 am

    @Eric There is nothing wrong with loading a style sheet if JavaScript is disabled (using the noscript tag). I think you might be misunderstanding the possibilites of the noscript element.

    # December 27, 2012 at 8:14 am

    @joshuanhibbert I don’t believe I am. I think using css is better

    # December 27, 2012 at 10:20 pm

    @Eric You realise that ‘style sheet’ and CSS are the same thing?

    # December 27, 2012 at 10:45 pm

    I don’t know, do you realize that you use toilet paper to wipe your ass? Yes I realize.

    # December 28, 2012 at 3:19 am

    @Eric I’m not trying to be facetious, you just seem to arguing for the sake of it:

    @Eric There is nothing wrong with loading a style sheet if JavaScript is disabled (using the noscript tag). I think you might be misunderstanding the possibilites of the noscript element.

    @joshuanhibbert I don’t believe I am. I think using css is better

    You and I are essentially talking about the same thing; using CSS as a fallback. I’m simply recommending that you take advantage of the noscript element to do so.

    # December 28, 2012 at 3:43 am

    @Eric, how can you do this with css:

    <noscript>
    Sorry, to experience the application/website fully you must enable javascript.
    </noscript>

    That’s what @vin308 was asking right?

    # December 28, 2012 at 9:33 am

    @josh ok no worries. @EkingRDL I posted how in the link above about 10 posts ago. :)

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".