<script src="jquery.js"></script>
<script>
$(document).ready(function() {
if(navigator.userAgent.match(/(iphone|ipod|ipad|android)/)==null) {
alert("computador");
} else {
alert("celular/tablet");
}
});
</script>
Fóruns sobre PHP, JavaScript, HTML, MySQLi, jQuery, Banco de Dados, CSS
Moderador: web
<script src="jquery.js"></script>
<script>
$(document).ready(function() {
if(navigator.userAgent.match(/(iphone|ipod|ipad|android)/)==null) {
alert("computador");
} else {
alert("celular/tablet");
}
});
</script>
![]() |
0 |