Reply to Re: DOM window.top.location

Your name:

Reply:


Posted by Vince Morgan on 11/12/06 00:32

"Jonathan N. Little" <lws4art@centralva.net> wrote in message
news:de0d1$4555cd88$40cba7bf$14257@NAXS.COM...
> > <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>
> 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

Thank you very much Jonathan.
I think your idea is a good one. However, I couldn't find a way for the
non-JS page not to show prior to the redirection.
There is another way though. One that allows for a very small switchboard
type page.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Refresh" content="0; url=Non-JS-Page.html">
<script type="text/javascript">
window.top.location="JS-Page.html";
</script>
</head>
<body>
<p></p>
</body>
</html>

I don't have enough knowledge about <meta>, or any html for that matter, to
know if the above will work in most browsers.
My previous programming experience is with languages that are lower level
and strictly standardised so I'm finding it a bit difficult following all
the incompatibilities in browsers.
Having said that, do you see any serious issues with the above code?
Thank you again Jonathan,
Vince

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация