Is there a way to remove specific div tabs from within an iframe by using the onload function set within the iframe itself? I want everything to be in one location for simplicity. It's important to note that I want to utilize the onload WITHIN this <iframe>
<iframe scrolling=no frameborder=0 src='insertwebsitehere' width=100% onload="this.height=this.contentWindow.document.body.scrollHeight;"> #document </iframe>
The div tabs I need to remove do not have specific ids, only classes:
class="d2l-page-actions-container d2l-right"
class="d2l-action-buttons"
I considered including something like this in the onload function:
<iframe onload="this.height=this.contentWindow.document.body.scrollHeight;this.contentWindow.document.html.body.removeClass('insertclasshere');">
However, it does not seem to work. Any advice on how to achieve this?
Any assistance is greatly appreciated. Thank you in advance.