Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting the height of a page before including it in an iframe

Status
Not open for further replies.

Warlocks

Technical User
Jan 9, 2003
79
GB
Hi,

I am wanting to use an Iframe in a document but wish to automatically set the height of the Iframe to match the content height.
I do not want to use scroll bars and although I can guarantee the width can be fixed, I need some way of setting the height to equal the page height of the page to be displayed in the Iframe.

Any help would be great.

Warlocks.
 
You'd probably have to use a scripting language to do this. I'd suggest asking in the JavaScript forum (forum216).

There is a chance that it could be achieved using CSS/HTML... but I'm really not too sure about that.

Hope this helps,
Dan

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top