if (!( /Android|webOS|iPhone|iPod|iPad|BlackBerry/i.test(navigator.userAgent))) { alert('success!'); }