Re: [jQuery] Re: JavaScript switched off

2009-11-10 Thread Charlie Griefer
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-enhance

Re: [jQuery] Re: JavaScript switched off

2009-11-10 Thread waseem sabjee
the op wanted to redirect without javascript On Tue, Nov 10, 2009 at 7:02 PM, Scott Sauyet wrote: > On Nov 10, 10:53 am, "factoringcompare.com" > wrote: > > What’s the best way to redirect when a users browser has JavaScript > > switched off? > > How about going the other way? > >document.lo

[jQuery] Re: JavaScript switched off

2009-11-10 Thread Scott Sauyet
On Nov 10, 10:53 am, "factoringcompare.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 addition