I need to make code which changes the size of the text when the user is using a mobile device. My code is:
if (!/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk| Opera Mini/i.test(navigator.userAgent)) {
document.getElementById("link").style["font-size"] = "120%";
}
It doesn't work but I can't understand where the problem lies