The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Redirect page when Javascript Disabled

View previous topic View next topic Go down

Solved Redirect page when Javascript Disabled

Post by TamDonCo on August 27th 2016, 3:06 pm

Hi All

Is any way to redirect to another page when users disable their javascript ??


Last edited by TamDonCo on August 28th 2016, 4:44 am; edited 1 time in total

TamDonCo
Forumember

Posts : 180
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Redirect page when Javascript Disabled

Post by Ange Tuteur on August 27th 2016, 4:01 pm

Hi @TamDonCo,

Yes, this is possible, however it can negatively impact your SEO because some bots that crawl your forum don't use JavaScript. Furthermore, it can also affect noscript users on your forum, thus turning them away. I'd advise against doing this. Instead, I'd recommend just adding a small notice somewhere in the overall_header like :
Code:
<noscript>
  <div id="noscript-notice">Our forum runs best with JavaScript enabled !</div>
</noscript>

Then you can use CSS to style it, like fix it to the screen for example :
Code:
#noscript-notice {
  color:#FFF;
  font-size:13px;
  font-weight:bold;
  background:#C00;
  padding:6px;
  position:fixed:
  left:0;
  right:0;
  bottom:0;
  overflow:hidden;
  overflow-x:auto;
  white-space:nowrap;
}


BTW here's a good ol' stackoverflow topic on this :
http://stackoverflow.com/questions/7129527/noscript-redirect-would-it-affect-search-engine-optimization

The code you're looking for is provided by the author, you'd need to add it in the overall_header if you're still up for doing this.

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Redirect page when Javascript Disabled

Post by TamDonCo on August 27th 2016, 4:06 pm

Thank You very much, Ange Tuteur

I will test it later when I have time

Have a nice weekend

TamDonCo
Forumember

Posts : 180
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Redirect page when Javascript Disabled

Post by TamDonCo on August 28th 2016, 4:43 am

Thanks a lot Ange Tuteur

I modified a little for my need

TamDonCo
Forumember

Posts : 180
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Redirect page when Javascript Disabled

Post by APE on August 28th 2016, 1:36 pm

Problem solved & topic archived.
Please read our forum rules: ESF General Rules





APE
Manager
Manager

Male Posts : 8648
Reputation : 760
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum