Home > Article > Web Front-end > How to determine whether to log in to a mobile phone or a computer in an html webpage
This article explains in detail how to determine whether to log in to a mobile phone or a computer using an HTML web page
<script type="text/javascript"> try{ if (/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) { window.location.href="mindex.html"; }else{ window.location.href="cindex.html"; } }catch(e){} </script>
The above is the detailed content of How to determine whether to log in to a mobile phone or a computer in an html webpage. For more information, please follow other related articles on the PHP Chinese website!