I do not have that much knowledge in mobile O.S.I
have developed an web application that shows indian language characters. it is working fine in web browsers but I am finding some issues in mobile browsers.I came to know that it is called rendering issue
. My purpose is not to solve this issue but I just want to show the users like "x,y,z language is not supported by your device"
like this. Basically I want to write a js file
that will load and will display this as an alert. But I am finding it difficult to to write js code that will interact with mob and will give some alert.
I have not attached any code as I am clueless.
Asked
Active
Viewed 89 times
1

Krish
- 648
- 1
- 8
- 17

Mithun Debnath
- 588
- 1
- 8
- 23
-
http://stackoverflow.com/a/674570/1059101 this might help. – Jai Jan 22 '16 at 13:06
1 Answers
0
var mobile = (/iphone|ipad|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()));
if(mobile)
{
alert("MOBILE DEVICE DETECTED");
}
else
{
alert("BROWSER DETECTED");
}

HiDeoo
- 10,353
- 8
- 47
- 47

Mithun Debnath
- 588
- 1
- 8
- 23
-
While this code may answer the question, providing additional context regarding how and/or why it solves the problem would improve the answer's long-term value. – HiDeoo Jul 10 '16 at 09:00