Skip navigation
siegbrunn
Currently Being Moderated

How do I show visitors w/o Java "You need java script enabled to view this site" ?

May 15, 2012 5:13 AM

Tags: #java #javascript #disable #enable #message

I use Firefox as my browser and through the use of NoScript generally do not have Java Scripting active. Although I can often tell just by the behavior of a page I visit that I need to enable some Javascripts, I often get a clear message from the website itself - something like "we see that you do not have Java script enabled, please do so" or perhaps "without Javascript you cannot view this site properly."

 

Now, I can just put a general message on the "splash page" saying "this website requires Java script to be enabled" for every visitor to see, but I would rather have the message just for those that need to see it because Java script is disabled.  How do I do that?

 

Thanks in advance.

Karen

 
Replies
  • Currently Being Moderated
    May 15, 2012 6:50 AM   in reply to siegbrunn

    Hey Siegbrunn,

     

    What you could do is make use of JS actually, and set the message in a div or something that gets verified by JS.
    If JS is enabled in the brower the script can run and hide the div (or what else you choose to use), or if JS is not enabled the alert will be shown to visitors.

     

    Cheers!

     
    |
    Mark as:
  • Currently Being Moderated
    May 15, 2012 9:03 AM   in reply to siegbrunn
     
    |
    Mark as:
  • Currently Being Moderated
    May 15, 2012 2:30 PM   in reply to siegbrunn

    As it is very difficult to produce a site in Muse without JS, you should probably look at the bigger picture instead of just inserting HTML manually. 

     

    Everyone is affected by this.

     

    You might start an "Idea" to promote the inclusion of a feature to present this warning automatically in Muse.  This should not be that difficult for the Muse team to include in a future update.

     

    http://forums.adobe.com/community/muse/create-idea!input.jspa?containe r=4758&containerType=14

     
    |
    Mark as:
  • Currently Being Moderated
    May 16, 2012 5:48 AM   in reply to siegbrunn

    You really only need the NOSCRIPT section.

    <noscript>This site functions best with JavaScript enabled.</noscript>

    Or styled a bit:

     

    <noscript><h1 style="font-size:24px; width:600px; color:#f00">This site functions best with JavaScript enabled.</h1></noscript>

     
    |
    Mark as:
  • Currently Being Moderated
    May 16, 2012 9:38 AM   in reply to siegbrunn

    You could put this on a master page so that every page is covered.

     

    The menu does not work without JS.  That means every page has "heavy JS".

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points