Add a meta-redirect in the head and remove it via javascript. If javascript is disabled, the user gets redirected.
Like this: http://jsfiddle.net/SunboX/HrA4f/ (But does not work in this case, why?) 2010/6/2 Jay <[email protected]> > Can I just check the referrer? > > Ryan Florence wrote: > > Make sure you do something to prevent breaking the back button, whatever > you do. > > > > On Jun 1, 2010, at 5:45 PM, Oskar Krawczyk wrote: > > > > > How about doing it the other way round? Start with the non-JS page that > redirects you to the JS-heavy version (using window.location not META > redirect). > > > > > > O. > > > > > > On 1 Jun 2010, at 23:56, Jay wrote: > > > > > >> I always try to write websites using progressive enhancement -- but a > > >> recent project I'm working on requires quite a bit of AJAX DOM > > >> injection and element processing in Javascript. I've made quite a few > > >> changes to MooTools so that a browser as old as IE5.5 can run the > > >> site, but I haven't figured out a good way to deal with visitors who > > >> have javascript disabled, and I'm also really concerned with visitors > > >> who use a screen reader -- even if they use it in a browser with > > >> javascript enabled. > > >> > > >> I need a way of getting non-javascript visitors to a different page. I > > >> tried inserting a <meta> redirect tag in the head, and disabling it in > > >> javascript with window.stop() and document.execCommand('Stop') (for > > >> IE). That works great in all versions of Firefox, Webkit and IE, but > > >> it doesn't seem to be stopping Opera from redirecting. I've also tried > > >> removing the tag, but I think once the timer starts, it can't be > > >> stopped. > > >> > > >> Is this a dumb way of redirecting? > > > >
