View Full Version : onload event handler not functioning unless refreshed

10-06-2003, 01:47 AM
I have an iframe that's content is written to from code in the top window, it is blank until the user clicks the button to populate the frame. the body tag and the onload event handler are written to the frame along with the rest of the page content onclick. Since the page didn't technically load the function doesn't get called. If I refresh the browser it then loads the page properly. I tried calling the function with the onclick command that loads the frame but still no luck. Any way to fix this?

10-06-2003, 02:00 AM
OK I'm lame. I just forgot to specify the iframe id when calling the function from the onclick on the top window.


Thanks Anyway.