AStromer
September 9th, 2002, 02:52 AM
I have a window, two frames in it (Frame1, Frame2)
Frame1 is a window where I can put all my javascript-code into.
Frame2 calls simple HTML-Files with now javascript in it.
Now I have a link in Frame2 goes to another simple HTML-File but I want to process that call before it goes to that HTML-File. I thought I can change the links in the simple HTML-Files in Frame 2 to something like
<a href='javascript:parent.Frame1.document.MyLinkProcessFunction(1,2,3)'>Click the link</a>
but with that link I can't call a function in Frame1.
Does anyone know the correct cross-frame function-call or isn't this possible at all ?
Thx
Frame1 is a window where I can put all my javascript-code into.
Frame2 calls simple HTML-Files with now javascript in it.
Now I have a link in Frame2 goes to another simple HTML-File but I want to process that call before it goes to that HTML-File. I thought I can change the links in the simple HTML-Files in Frame 2 to something like
<a href='javascript:parent.Frame1.document.MyLinkProcessFunction(1,2,3)'>Click the link</a>
but with that link I can't call a function in Frame1.
Does anyone know the correct cross-frame function-call or isn't this possible at all ?
Thx