How to replace hyperlink based on useragent of mobile device

I have the following html which detects if the useragent is from a blackberry device. I would like to know how to replace the download url with a one specific for a device ie, i would like to direct the user to download for 9800 device if his device is 9800. please can anyone help?

Download" rel="nofollow" target="_blank">">Download

asked Apr 19, 2015 in JAVASCRIPT by rajesh
0 votes

1 Answer

0 votes
i hope that this helps and that i fully understood what you are asking. all the best.



answered Apr 19, 2015 by rajesh