I have an iframe generated by Power BI. I am not able to change the font size.
I have tried targeting it by span and div but in vain.
<script>
var span = document.getElementById("myFrame");
span.style.fontSize = "100px";
</script>
<iframe span id="myFrame" width="500" height="150" src="https://app.powerbi.com/view?r=eyJrIjoiNjBlM2EyMWUtMmU1My00NzkyLWE1NTgtNDYyZDUzZTg5YmM3IiwidCI6IjNiZDI3ZWY4LThkMzgtNDY1Ni04NmQyLTVmMGQ5MGE3Mzk4MSIsImMiOjN9" frameborder="0" allowFullScreen="true"></iframe>
Have also tried this
<script>
function changeSize(){
var frame = document.getElementById("myFrame");
var content = (frame.contentDocument || frame.contentWindow);
content.body.style.fontSize = "200%";
}
changeSize();
</script>
The iframe displays a number. And I would like to Increase the font-size of that number using JavaScript. So far I have no luck. Any help on this matter would be greatly appreciated.