Detect windows phone Detect windows phone with javascript by Aamir Shahzad July 11, 2014 JavaScript if(navigator.userAgent.match(/iemobile/i)) { alert('test'); }