I am currently working on a Hybrid E-commerce app using Ionic Framework v3
. One issue I have encountered is setting an iframe with a third party URL in my app. It functions correctly, but I need to find a way to disable scrolling within the iframe. Despite trying several methods like:
scrolling="no"
set inside the iframeiframe { overflow: hidden }
Setting CSS
Utilizing jQuery without success.$("iframe").contents().find("#body").addClass("iframeclass")
I can manually disable scrolling from the browser by setting overflow: hidden
within the iframe > html > Body tag, but I am unsure how to achieve this programmatically.
Please review my code below and provide recommendations for a proper solution:
<iframe class="iframPlace" [src]="sanitizer.bypassSecurityTrustResourceUrl(browselink)" scrolling="no"></iframe>
Thank you.