I need to change iframe size. This is my html code
<iframe id="stream" width="720" height="433" src="#HiddedIt" style="border:0;outline:0" frameborder="0" scrolling="no"></iframe>
And this is my Javascript:
if (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth < 1100){
document.getElementById("stream").width = "485px";
document.getElementById("stream").height = "295px";
}
It doesn't change iframe's size when the user's resolution is lower than 1100. Can you tell where I'm doing a mistake? Thank you.
if is working but iframe's size is not changed.
iframein the document flow?<script src="stream.js"></script>