Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    Adirondacks
    Posts
    516
    Thanks
    4
    Thanked 4 Times in 4 Posts

    rules of noscript?

    I have a javascript/css menu I like but...grrr....I need to have some vanilla looking links for the non javascript folks. What are the rules to what I can and can't put between noscript tags?

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    You can put whatever you want in the noscript tags just be sure its valid html. Remember noscript tags can only go in the body of the document.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    Adirondacks
    Posts
    516
    Thanks
    4
    Thanked 4 Times in 4 Posts
    Quote Originally Posted by _Aerospace_Eng_ View Post
    You can put whatever you want in the noscript tags just be sure its valid html. Remember noscript tags can only go in the body of the document.
    really?
    cool thanks

  • #4
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,079
    Thanks
    203
    Thanked 2,542 Times in 2,520 Posts
    The classic implementation:-

    <body>
    ...
    ...
    <script type="text/javascript">
    <!-- // Hide from non-javascript enabled browsers
    document.write("Hello World!")
    //--> // End hiding
    </script>
    <noscript>Your browser does not support JavaScript!</noscript>
    ...
    ...
    </body>

    But do any browsers actually in use these days not support scripting?
    Or have you in mind those who have turned JavaScript off?

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Location
    Adirondacks
    Posts
    516
    Thanks
    4
    Thanked 4 Times in 4 Posts
    Quote Originally Posted by Philip M View Post
    The classic implementation:-

    <body>
    ...
    ...
    <script type="text/javascript">
    <!-- // Hide from non-javascript enabled browsers
    document.write("Hello World!")
    //--> // End hiding
    </script>
    <noscript>Your browser does not support JavaScript!</noscript>
    ...
    ...
    </body>

    But do any browsers actually in use these days not support scripting?
    Or have you in mind those who have turned JavaScript off?

    If a menu is javascript, I think it's a good idea to make a noscript menu too for search engines and such


  •  

    Posting Permissions

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