Reputation: 766
I'm the developer of a website that creates maps that are meant to be included on bloggers websites. I'd like to add a feature that allows users to render the map fullscreen.
I read threads about requestFullscreen
methods (that depends on the browser), but I have to call this method on the iframe element that is not on my website but on bloggers ones.
I tried to call window.parent.document
to find the iframe
element and call requestFullscreen
but it's not possible with Cross domain iframes.
I'm sure this is possible because Youtube does it. I'm not sure if they inject a script that does the job or something. How to do that ?
Upvotes: 0
Views: 1129
Reputation: 26
use html element Allowfullscreen
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe
Upvotes: 1