Closed eli007s closed 3 years ago
@eli007s so do you want to access html content ?
Stale issue message
Hi there! Do you mind reopen this issue? Well, it's not really an issue, is more a how-to.
I would like to access the css classes in the html inside the iframe, but couldn't find a way to do it. I'm fiddling inside the onload(frame) as @eli007s.
My goal is to remove a div in the html, selecting it through its class, but it should work to change or add a style.
best regards, Gil
edit: @Chantouch : just mentioning you to bring your attention to this edit 2: love old cambodian rock n' roll, b.t.w.
what is the plan to remove a div inside html element ?
@gilfuser did you try to access it by $refs
?
Hi @Chantouch. Yes, I did.
shouldnt browsers disallow access to iframe content by default?
@chris-aeviator yes, it might be so too.
when running
this.iframe = frame.contentWindow
this.iframe.document.body.innerHTML
it returns
what needs to be done to return the content of the loaded iframe?