A
August Karlstrom
Hi,
This is probably a rather basic question. Anyway, I'm making a site that
relies on JavaScript; however, if JavaScript is not enabled I want to
show some information instead of the regular content. What is the
recommended way to achieve this?
For example if JavaScript is not enabled the HTML below will output
This site requires a JavaScript enabled browser.
This is the regular content.
but I want only the first paragraph to be rendered in this case.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Test</title>
<script type="text/javascript"></script>
</head>
<body>
<noscript>
<p>This site requires a JavaScript enabled browser.</p>
</noscript>
<p>This is the regular content.</p>
</body>
</html>
August
This is probably a rather basic question. Anyway, I'm making a site that
relies on JavaScript; however, if JavaScript is not enabled I want to
show some information instead of the regular content. What is the
recommended way to achieve this?
For example if JavaScript is not enabled the HTML below will output
This site requires a JavaScript enabled browser.
This is the regular content.
but I want only the first paragraph to be rendered in this case.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Test</title>
<script type="text/javascript"></script>
</head>
<body>
<noscript>
<p>This site requires a JavaScript enabled browser.</p>
</noscript>
<p>This is the regular content.</p>
</body>
</html>
August