Category: Java Script

How to detect the browser its iPhone/iPad/iPod

Using javascript we can detect the machine is iPhone/iPad/iPod. The script is like below, if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) { if (document.cookie.indexOf(“iphone_redirect=false”) == -1) window.location = “http://m.espn.go.com/wireless/?iphone&i=COMR”; } // For use within normal web clients var isiPad = navigator.userAgent.match(/iPad/i) != null; //

Posted in Java Script

Make sound with loop at HTML5

Loop Method 1 Use pure html5 tag like this, Loop Method 1 Use html5 and javascript like this,

Posted in Java Script