|
Posted by Jonathan N. Little on 11/11/06 13:19
Vince Morgan wrote:
> Hi All,
> I beleive [window.top.location] is part of the HTML DOM.
> The reason I ask is that if it does work I'll structure my no javascript
> fallback arrangement like below.
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
> <html>
> <head>
> <title></title>
> <script type="text/javascript">
> window.top.location="MyJavaPage.html";
> </script>
> </head>
> <body onLoad="window.top.location='NoJavaPage.html';" id="main" class="">
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
That's JavaScript between the two quotes! It will not work if JavaScript
is disabled
> <p></p>
> </body>
> </html>
>
> If it doesn't, I'm quite lost as to how to achieve a graceful fallback.
> I know I could just let it fall through and have the non-JS enabled content
> within the body. However, for the sake of speed, and that the JS enabled
> page should actualy be the default, I would prefer to do it as above or
> similar.
> Any comments or help is very much appreciated.
The only way I can see it to make this page the non-JavaScript page and
use JavaScript function to change to the JavaScript page, that way the
page will only be redirected *if* JavaScript is enabled.
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|