Tuesday, January 26, 2010

Dynamic IFRAME Height Adjustment

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:


This will change the height of iframe named 'myframe' to 500.

You can also call within the iframe:


Isn't daddy great?

No comments:

Post a Comment