I want to know if there is anyway for the javascript file to detect which device is it so that it can run the specified js file?
For example, I have two js file - a.js and b.js, and I want that if it's a iOS device, so the a.js is executed, and if they're other devices (like pc and androids) - so b.js is executed.
 
    