javascript - Setting allowfullscreen attribute to a div tag -


my question pretty simple. can use attribute allowfullscreen="true" normal <div> element make full-screen?

actually, i'm building custom youtube skin , disabled default controls using youtube iframe api , now, need create new ones in place of them. problem making <iframe> element full screen not allow me place new buttons (obviously outside of iframe) in fullscreen mode. so, please put light in matter.

p.s. - have tried putting allowfullscreen="true" in container <div> , it's working of now. right process of doing have been trying do?


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -