I have an iframe with "scrolling =" no "and a button that sets the iframe attribute to scroll =" yes "when necessary.
$("#button3").click(function(){ $( "#iframe_id" ).attr( "scrolling", "yes" );});
But the scrollbar does not appear when I press button 3, only after updating the iframe. How to make srcoll panel appear instantly?
How it works now: http://jsfiddle.net/77van/k8GhZ/1/
Now jquery sets .attr to scrolling="yes" and reloads the iframe!
.attr
scrolling="yes"
$(document).ready(function () { $("#button3").click(function () { $("#iframe_id").attr("scrolling", "yes"); $('#iframe_id').attr("src", $('#iframe_id').attr("src")); }); });
http://jsfiddle.net/77van/k8GhZ/10/
Believe me, you cannot do this with an iframe. It will not work in Chrome or IE. I played a lot with iFrame in the past, and such things have never worked for me.
iFrame just doesn't accept any changes after loading
Source: https://habr.com/ru/post/1500002/More articles:Android library and DropboxSync - javaSome function parameters named arg0, arg1, etc. After compiling the JAR library - javaUnique index in C ++ - map with custom sorting - c ++creating and using strings with surrogate pairs - javaFullscreen responsive CSS background image - htmlWhy did I get this MySql error while updating sql - sqlPython TTP connection - pythonJQuery Mobile Windows Phone 8 fixed footer - jqueryuse CSS content content in an element to exclude store information for javascript - javascriptAndroid: using sharedPreferences in a broadcast receiver - androidAll Articles