View Full Version : :: control parent iframe from child

09-28-2005, 02:43 PM
hi all, im trying to control the height of an iframe from inside the child page. the idea is to get the height of the content (container) then resize the iframe to that height. for some reason im having trouble accessing the iframe.

function setiframeheight(what1,what2){ // for setting an iframe's height
var i = document.getElementById('container') ;
var c = parent.frames['iframer'];
c.style.width = i;

any help appreciated

10-03-2005, 11:42 AM
any ideas peeps? :confused: