I advertise a company, basicaly I'm an affiliate. I want to redirect my mobile viewers to the mobile version of my affiliate website. I'm thinking of doing this with screen resolution. Basicaly, if the screen resolution is unde 800 x 600, chances are big the guest is using a mobile phone.
Is this a good ideea?
Here is the code:
if ( (screen.width < 800) && (screen.height < 600) ) {
window.location = 'mobilesite';
}
Ty!