Have a site which uses iframes for IE and frames for the rest. Clicking on menu items loads external documents into iframes/frames (named content and content2). Sometimes a document is loaded into content, with content2 remaining 'blank', sometimes a different document loads into each of content and content2 - say text into content and a relevant pic into content2.
Problem is that when the document in content is changed, the document in content2 remains until such time as user selects a menu item that loads a document into that iframe/frame. This means that the document appearing in content2 is quite irrelevant to that being viewed in content. Thought I could fix the problem by writing an 'on unload' statement into the document in content that would cause it to reload the 'blank' document in content2 when it was unloaded. This seemed to be a way to conserve user resources rather than reloading a 'blank' doc in content2 everytime the menu is clicked.
Of course, cannot get it to work!!
Any suggestions for code - or a different process - would be most appreciated.
Problem is that when the document in content is changed, the document in content2 remains until such time as user selects a menu item that loads a document into that iframe/frame. This means that the document appearing in content2 is quite irrelevant to that being viewed in content. Thought I could fix the problem by writing an 'on unload' statement into the document in content that would cause it to reload the 'blank' document in content2 when it was unloaded. This seemed to be a way to conserve user resources rather than reloading a 'blank' doc in content2 everytime the menu is clicked.
Of course, cannot get it to work!!
Any suggestions for code - or a different process - would be most appreciated.