Before going any further, this feature will NOT work with the following DOCTYPE:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Here we go:
You just need this to be called:
document.getElementById('myframe').height=500;
This will change the height of iframe named 'myframe' to 500.
You can also call within the iframe:
parent.document.getElementById('myframe').height=500;
Isn't daddy great?
No comments:
Post a Comment