Hello, i have this script and it works fine. I have it on the Desktop page and when a user enters it they get a question to be redirected to mobile page, this works fine. But i then have on the mobile page a link back to Desktop page, but when this link is clicked and the user gets to the Desktop page they will get the quetsion again. So my question is. Is there a way to let the Desktop page know that the user have clicked the link in Mobile page and if so do not show the Question again?
Thank you.
The code i have now:
<script type="text/javascript">
var isMobile = (/iphone|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent) && confirm('Realy?'));
if (isMobile)
{
location.replace("mobile_site.html");
}
</script>