lundi 29 décembre 2014

If and else redirections

Im trying to write a code that goes something like this:



if (a certain cookie is detected) stay on the current url
else (screen.width <= 699) {
document.location = "http://www.hotshotsnet.com/portals/0/mobile/mobile.html";

Aucun commentaire:

Enregistrer un commentaire