Home > Technical & Creative Skills > Programming, Servers & Scripts

Script to redirect based on browser? (3)


09-07-2016 01:25 PM #1 memo87 (Member)
Script to redirect based on browser?

I know this can be done at the tracker level, but is there a javascript snippet that would allow me to load different html pages depending on the user's browser? I've been searching for a few hours but I haven't found a suitable solution yet (it needs to be javascript as the pages are hosted on a cdn). Anyone have any ideas?


09-07-2016 02:05 PM #2 tijn (Moderator)

Here are a bunch of scripts:

https://github.com/search?l=JavaScri...utf8=%E2%9C%93

A quick scan through i would recommend this one - http://baris.aydinoglu.info/Detectizr/ - as its an extension to Modermizr which benefits your LPs.

Just need to do some plumbing to add in some code to redirect or load different content based on browser.


09-07-2016 02:20 PM #3 memo87 (Member)

awesome. Thank you!


Home > Technical & Creative Skills > Programming, Servers & Scripts