How about delivering both types of content and letting the browser decide which content to display. Do a search for "noscript tags".

This is a common problem that is considered everyday by web programmers. There are also ways to make the page redirect elsewhere if the browser displays the content of the <noscript> tags, which only happens if javascript is disabled. Or, you can have the javascript redirect to a new page, so people with javascript will go to a different page. However, redirecting like that has search engine implications, which you should investigate.

I believe the accepted practice is to develop the page without js, and get it working within the scheme of your website. That is what non-js enabled users will see and use. Then you add the bells and whistles with js, which allows users with js enabled to see the extra stuff. In other words, js is not supposed to be responsible for the guts of the page--js is supposed to be used to enhance a page.

The other option for web programmers who don't care about non js users is to use <noscript> tags to say, "Sorry, this site doesn't work unless you have javascript enabled. Get lost."


In reply to Re: how would you... by 7stud
in thread how would you... by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.