I am trying to remove scrollbars from all iFrames on a page using jQuery.
I am using the code below for that:
$("iframe").each(function() {
$(this).css({"overflow":"hidden","scrolling":"no"});
});
The problem is that as I keep refreshing the page sometimes it works and sometimes it doesn't which makes me believe there is some sort of a timing issue here. Perhaps the iFrames have not been loaded yet when the code above runs? Perhaps adding time delay?
The code is wrapped inside $(document).ready(function()
handler