@Khalid_AliSep 16.2003 — #iframe tag does not have an onload event,what you can do is have the onload body event in the src document that you will load in the iframe and you can access any function,varaible in the src document from the parent page,however, the src page have to be served from the same domain.
@EnselicauthorSep 16.2003 — #That could be a solution I guess.
However, I want things to be clean, so adding an onLoad event in every .htm is not a good way. It becomes unnessecarily complicated if I'm going to add another menuitem.
Maybe I'm too breif, this is the situation...
I have a HTML-doc called menu.htm in which I have several menuitems. There's also an iframe in which I view the selected .htm. Take a look at www.enselic.tk and you'll get it.
I want a single function on the menupage to load and resize the iframe. To know when I'm going to set the size I need to know when the document is fully loaded so scrollHeight is correct.