I have added an iframe to show a power point diagram on SharePoint classic page. By default it has a some tool bars and other sections in the iframe. I would like to clear all the controls and tool bars so that only the diagram appear on the iframe. I have attempted the below on a script editor but no luck
<iframe id="myframe" src="https://mydomain.sharepoint.com/sites//PMCMInternational/_layouts/15/Doc.aspx?sourcedoc={c8700571-d499-4dc9-a623-52957080fd9f}&action=embedview&wdAr=1.7755102040816326&Embed=1" width="350px" height="221px" frameborder="0">This is an embedded <a target="_blank" href="https://office.com">Microsoft Office</a> presentation, powered by <a target="_blank" href="https://office.com/webapps">Office</a>.</iframe>
<script>
el = document.getElementById('myframe')
if (el != null) {
alert('id :' + el.id)
if (el.name!=""){
alert('name: ' + el.name)
document.getElementById("myframe").contentDocument.getElementById("WACStatusBarContainer").style.display="none";
}
else{
alert('frame do not have name attribute')
}
}else{
alert('frame do not exist')
}
</script>
As I understand Iframe's css cannot be directly editable can someone guide me on how to proceed?