Click to See Complete Forum and Search --> : Button which opens link in another frame, and refresh's itself.


SMcClure34
12-17-2003, 05:03 AM
Is this possible? A button which when clicked on, will load a link in another frame, and at the same time, refresh its own frame?

Kor
12-17-2003, 05:28 AM
Yes. You mai fire a function from another frame or from parent.

For instance, if that button is in an iframe, you may fire a function layed in the parent, using the reference parent
and, the same time, fire a function written in the same page with the button.

onevent ="parent.theFunction();anotherFunction()"

If you want to do otherwise (call a function from parent) use top.frames[name_of_iframe] reference

onevent ="top.frames[name].anotherFunction();theFunction()"