Forums
Toggle Search
CES 2023
Club CrackBerry
BlackBerry Forums
Club CrackBerry
BlackBerry Forums
Other Categories
Answer / Ask a Question
Reviews
Deals
Contests
Newsletter
Help & How To
News & Rumors
Log in
or
Sign up
t
f
p
i
r
Brightness
Light Mode
Dark Mode
© Cage Michaels, Inc.
Terms & Conditions
Privacy Policy
CREATE
YOUR
ACCOUNT
ASK A QUESTION
TRENDING:
BlackBerry Hub+ Inbox Latest Updates
282
Can't unlock my Classic...
232
Blackberry Hub & Inbox Draft Spacing Issue
220
BlackBerry Curve 8900 software
201
Getting info from BlackBerry content transfer backup on Gdrive
198
Where can I find the Katy Perry theme?
126
Forum
BlackBerry Developers
Developers Lounge
Javascript detect BlackBerry?
05-02-09 10:31 PM
tools
Advanced Search
Show Printable Version
1
https://forums.crackberry.com/showthread.php?t=219072&s=32a0efdddb93cb9505f0cc467d64550e&p=2443587&viewfull=1#post2443587
essseabass
OK - so I have found a great simple script for detecting an iphone and redirecting - is there an equivalent for all blackberries?
<script language=javascript>
<!--
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)))
{
location.href='linktonewurl';
}
-->
Thanks!
05-01-09 12:58 PM
Like
0
9,473
https://forums.crackberry.com/showthread.php?t=219072&s=32a0efdddb93cb9505f0cc467d64550e&p=2443949&viewfull=1#post2443949
Reed McLay
Retired Moderator
Welcome to CrackBerry.
I have moved your thread to the developers subfourms, perhaps somebody can help you here.
05-01-09 01:41 PM
Like
0
497
https://forums.crackberry.com/showthread.php?t=219072&s=32a0efdddb93cb9505f0cc467d64550e&p=2455224&viewfull=1#post2455224
ydaraishy
Yes, detect the Blackberry user agent.
The Blackberry browser can choose which user agent they wish to present to the server, so keep that in mind.
05-02-09 10:31 PM
Like
0
Forum
BlackBerry Developers
Developers Lounge
Javascript detect BlackBerry?
«
New to Java Dev
|
touch n slide
»
LINK TO POST COPIED TO CLIPBOARD