| How to know user is a mobile or desktop user with the help Javascript Code?
Below is the simplest code which will check that user is a mobile or a desktop user
var index = navigator.appVersion.indexOf("Mobile");
if(index>-1)
{
window.location.href = "https://crackyourinterview.com";
}
| | |