JSFiddle - React, Tailwind, and code Playground

by 77van

HTML

<iframe scrolling="no" id="iframe_id" width="100%" height="100" src="http://jquery.com/"></iframe>

<a id="button3" href="#">click</a>
scroll bar does appear now, because jquery reloads the iframe

JavaScript

$(document).ready(function(){ 
$("#button3").click(function(){
    $( "#iframe_id" ).attr( "scrolling", "yes" );
 $('#iframe_id').attr("src", $('#iframe_id').attr("src"));
});  
});