The task is to determine the user’s device, whether it is iPad or not, using JQuery. Below are the required methods:
Navigator userAgent Property:
This property returns the value of the header of user-agent which is sent by the browser to the server.
Returned value, have information like name, version, and platform of the browser.
It returns a string, which represents the user agent string of the current browser.
Example: This example uses the navigator.userAgent property to identify the user’s device.
Before reaching the bottom:
After reaching the bottom: