For example, I am trying to iframe the youtube subscription box on the homepage, and the problem is, if I make the iframe really long, then it wastes space, but if I make the size I want, then if the user clicks the “load more videos” button, then it gets cut off. So is there any way to make the iframe (or any alternatives) be a percentage of the size, or dynamically change when the page changes?
Share
Create a file and call it
iframe.htmlNow create an html page called
tree.htmland put some dummy content in it.Make sure that theiframe.htmland thetree.htmlare in thesame directory. Open the.htmlfiles in browser and you will observe the o/p.Some more useful links :