Resize Of Iframe Dynamically Depending On The Content Of The Iframe Of The Iframe's Src URL
I want to resize the height of Iframe dynamically on the content of the IFrame's src URL and the this src is coming through Webservice method. please help any one..thanks
Solution 1:
When the website is from the same domain, you can use this code, which expands the frame as much as possible:
var frame = document.getElementById("name_of_iframe");
var contentframe = document.frames["name_of_iframe"];
contentframe = (contentframe.contentDocument||contentframe.windowWindow.document).body;
frame.style.height = contentframe.scrollsetHeight + "px";
frame.style.width = contentframe.scrollWidth + "px";
Post a Comment for "Resize Of Iframe Dynamically Depending On The Content Of The Iframe Of The Iframe's Src URL"