'unload' of an iframe

I have a site which uses Iframes.

The ‘main’ iframe has its scrollbars disabled but this doesn’t matter because when content is loaded into the the Iframe its height is set the scrollHeight of the content.

This works well except when we an external (page not on the same domain) page is loaded into the frame because at that point we can’t then control the Iframe’s properties.

There are times when I know this is going to happen and on those occasions I set the scrollbars to yes to overcome the problem. The issue is when a user puts a link to an external site on one of his documents.

Does anyone know of something that is triggered when ‘external’ content is loaded into the Iframe ?

Thanks

Paul

Subject: ‘onUnload’ of an iframe - getting closer I think

I have been continuing to work on this one and feel that I am close but I can’t get my changes to ‘apply’ themselves to the browser. There are three main bits of code:

This is the Iframe pass thru html, the main bit to mention here is the scrolling=auto setting.

Subject: set IFrame attribute programmatically ?

Does anyone know if you can programmatically assign an Iframe attribute ?scrollVar = if (host = x){y}else{z}

i.e.