this is from an HTML5 book, to test whether the browser supports <audio> tag....Code:
var canPlayAudioFiles = !!(document.createElement('audio').canPlayType);
(asking because this line occurs inside a typical jQuerythingie... )Code:
could this be done with a classic boolean function/method????