add or remove controls attribute from html5 <video> tag
问题 I am looking for a method to add the controls attribute to a video tag based upon the user agent string. I do not wish to have the controls attribute present on any browser or device other than Ipad and Android. So i thought that user agent was the best way to identify because the words ipad and android are present in their respective UA header. What is the best way to accomplish my goal? I've tried this with no luck: <script type="text/javascript"> var myVideo = document.getElementById(