#1
  1. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2001
    Location
    In a multi-cultural mess.
    Posts
    569
    Rep Power
    14

    How can I tell whether a browser has javascript enabled?


    I want to pop a "help" window in a "new" location so the user
    is aware that there are now 2 windows -- the help window
    and the "main" window that the help refers to.

    How can I tell whether a browser has javascript enabled?

    Robert
    Robert
    ---
    If it's hard, it's probably wrong.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2001
    Location
    Toronto, Ontario, Canada
    Posts
    631
    Rep Power
    14
    If javascript is disabled, but the script exists in the page:

    <script language="javascript">
    <!--


    -->
    </script>

    The <!-- --> hide the script from browsers that don't have javascript or don't have it enabled.

    If javascript is not enabled or is not supported by the browser, anything between the
    <noscript> </noscript>
    tags will be processed.

IMN logo majestic logo threadwatch logo seochat tools logo