create a frameset and redirect the page
|
|
Is there a way to create a frameset of two frames, one on the top and a menu bar on the bottom, so that the page loads on the top frame and the menu-bar contains a static page?
Thanks in advance! |
|
|
I found a solution inspiring myself from te script: Craigslist skin BETA, document.body = document.createElement('frameset');
bottomFrame = document.createElement('frame');
now the problem is that i can't add an event listener to the frame 'top.frames[1]' , does anybody know how can I add an eventlistener to a frame? |
|
|
Frames support very few events: load, unload, resize, moreover I think you have some cross site restriction |
|
|
So...should this work? top.frames[1].addEventListener('load', changeMenu, false); Because I cannot get the sctipt to execute the changeMenu function... Thanks! |
|
|
maybe |
|
|
You create the topFrame that load a frameset? Quite complicated, first you have to wait for the topFrame to finish load the frameset, then you can add the event listener to the top topFrame.frames[1]. |
