Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Redirect web visitors whose javascript is disabled

Posted on 2014-03-12
8
Medium Priority
?
289 Views
Last Modified: 2014-03-12
I have an older website, whose features will degrade gracefully for browsers with javascript disabled.  A newly-launched website has features which would be more difficult to degrade gracefully.  I'd like to direct browsers to the old site by default, and over-ride that redirection with javascript.  I've tested this in the <HEAD>:

<noscript>
  <meta http-equiv="refresh" content="0; url=http://oldsite.com/">
</noscript>

It seems to be working, but  I don't know if there will be unintended consequences.  Perhaps there is an alternative approach, or is this an acceptable method?
0
Comment
Question by:ddantes
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 39924969
What is the URL of the test site?  I'll be glad to try it in a few different browsers and let you know what happens.  

FWIW, I don't think there is anything wrong with your approach.  However, there are not very many clients who disable JavaScript (or cookies, for that matter) because if you remove these features you can't use most of the major and popular web sites like Facebook, Amazon, Twitter, etc.
0
 

Author Comment

by:ddantes
ID: 39924993
Thank you for offering to test.  www.mauivacationrental.com/test.htm  should redirect to www.mauitradewinds.com  with nojs.

I agree, it's a small audience who disable js.  If there's no harm in accommodating them, I'd prefer to do so.
0
 
LVL 58

Expert Comment

by:Gary
ID: 39924997
That's the common way to do it and is supported in all browsers
0
The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

 
LVL 111

Accepted Solution

by:
Ray Paseur earned 1000 total points
ID: 39925280
Looks like it work OK.  I got redirected every time.  I also got snotgrams from Facebook :-)
0
 

Author Comment

by:ddantes
ID: 39925319
Thank you for testing, Ray.  Please excuse my antiquated mentality, but what do mean about "snotgrams from Facebook"?
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 39925324
Facebook is "pretty lame" with JavaScript disabled.  They put a banner across the page to tell you how you are missing out on the "good experience."
0
 

Author Comment

by:ddantes
ID: 39925334
Got it!   Thanks again for your help.
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 39925338
Thanks for the points and thanks for using EE!  Enjoy Spring Break! ~Ray
0

Featured Post

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn how to count occurrences of each item in an array.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question