Ciao!! grazie per il link!!
Allora, sto provando a metterci le mani:
nella pagina in cui effettuare il redirect chiamo un js a questo modo:
<script type="text/javascript" src="miopercorso/miofile.js"></script>
nel file ho:
function UsAg(){
var SmartphoneDetector = {
deviceIphone : "iphone",
deviceIpod : "ipad",
uagent : navigator.userAgent.toLowerCase(),
// function list
detectIPhone : function(){
if (this.uagent.search(this.deviceIphone) > -1)
location.replace('http://www.html.it');
else
return false;
},
detectIPad : function(){
if (this.uagent.search(this.deviceIpad) > -1)
location.replace('http://www.html.it');
else
return false;
}
}
}
ovviamente non mi funziona ma visto che sono gnucco sicuramente la colpa è la mia...dove sbaglio?![]()