0

I have this simple HTMl file

<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $("p").click(function(){
    $(this).hide();
  });
});
</script>
</head>
<body>

<p>If you click on me, I will disappear.</p>
<p>Click me away!</p>
<p>Click me too!</p>

</body>
</html>

Is it possible to know from which device this page is accessed from , i mean from Browser OR a Mobile / Tablet ??

I am sorry if this not related to Jquery section .

Pawan
  • 31,545
  • 102
  • 256
  • 434

1 Answers1

0

Check out user agent in javascript :) OR use some already made script - check the site: http://detectmobilebrowsers.com/

Lashus
  • 399
  • 1
  • 9