Webapps Online


Switch to mobile script

This script detrects if the visitor of your websites uses a smartphone. If so, the script automaticly switches to the mobile version of the website.

The button below performs a test of this script. If you opened this website using a smartphone, it should prompt "mobile". Otherwise it prompts "desktop".


this script is easy to install:

Download the script

Click with the right mouse button on the link below and select the option "save target as". Save the file in the root folder of your website. The root folder is the folder in which the index.html, index.php or index.asp file is stored.


Activate the script

Insert the following code in the head section of your website:

<script type="text/javascript" src="/switch_to_mobile.js"></script>
<script type="text/javascript">

Replace "http://test.mobile247.eu" with the domain name of your website.