checking if JavaScript is turned on...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mel

    #1

    checking if JavaScript is turned on...

    can you help me with this ?

    i need to know if javascript is enabled on the user's browser

    thanks for your help

    Mel


  • David Dorward

    #2
    Re: checking if JavaScript is turned on...

    Mel wrote:
    [color=blue]
    > can you help me with this ?
    >
    > i need to know if javascript is enabled on the user's browser[/color]

    <script type="text/javascript">
    function jsenabled() {
    return true;
    }
    </script>

    That will return true is JS is enabled.

    Something tells me that this won't help very much. Maybe if you put the
    question in context I could offer a more practical suggestion.

    --
    David Dorward <http://dorward.me.uk/>

    Comment

    • Janwillem Borleffs

      #3
      Re: checking if JavaScript is turned on...

      Mel wrote:[color=blue]
      > can you help me with this ?
      >
      > i need to know if javascript is enabled on the user's browser
      >[/color]

      Just put the following in the head section of your document:

      <script type="text/javascript">
      location.href = "js-enabled.html";
      </script>

      When JS has been disabled, the visitor won't be redirected...


      JW



      Comment

      • Hywel Jenkins

        #4
        Re: checking if JavaScript is turned on...

        In article <59812$401d2dbe $44a7759e$22185 @msgid.meganews servers.com>,
        jmel@redolive.c om says...[color=blue]
        > can you help me with this ?
        >
        > i need to know if javascript is enabled on the user's browser
        >[/color]
        Think about that for a minute. What are you going to do once you've
        determined whether it is or not?

        --
        Hywel I do not eat quiche


        Comment

        Working...