Scott's solution, as he mentioned, goes "the other way", but still does what
the OP wanted.

If the user doesn't have JS enabled, the location.href won't fire, and the
current page will still render fine.  If the user does have JS enabled, the
location.href call will redirect them to the JS-enhanced page.

The OP was looking for a W3C compliant solution.  AFAIK, Scott's option fits
that bill.

On Tue, Nov 10, 2009 at 9:20 AM, waseem sabjee <waseemsab...@gmail.com>wrote:

> the op wanted to redirect without javascript
>
>
> On Tue, Nov 10, 2009 at 7:02 PM, Scott Sauyet <scott.sau...@gmail.com>wrote:
>
>> On Nov 10, 10:53 am, "factoringcompare.com"
>> <firstfacto...@googlemail.com> wrote:
>> > What’s the best way to redirect when a users browser has JavaScript
>> > switched off?
>>
>> How about going the other way?
>>
>>    document.location.href="enabled.html";
>>
>> Better still when possible is to unobtrusively enhance the non-js page
>> with additional functionality.  That is generally the cleanest way of
>> making sure that your content is accessible, available to search
>> engines, and still has all your cool dynamic behavior for those with
>> JS on.
>>
>>  -- Scott
>>
>
>


-- 
Charlie Griefer
http://charlie.griefer.com/

I have failed as much as I have succeeded. But I love my life. I love my
wife. And I wish you my kind of success.

Reply via email to