<cfif Find("iPad", CGI.HTTP_USER_AGENT) OR (Find("Android", CGI.HTTP_USER_AGENT) AND not Find("Mobile", CGI.HTTP_USER_AGENT))> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1"> </cfif>
ColdFusion Detect iPad or Android tablet
This example uses tablet detection to specify a 1.0 scale for tablet devices.
Snippet Viewed 9817 times.
Share your ColdFusion code snippets:
- Get some recognition & a link back to your site.
- Create your own code library.
- Help your fellow developers, as they have helped you.