
Newbie script question : reload a frame from another frame
Quote:
> hello,
> I am not used to html dev, then my question will certainly seems too easy
> ...
> I use a FORM in a frame (frameA) with use the POST method when clicking a
> button.
> At the same time, I want to reload the current HTML which is in an other
> frame (frameB).
> I think I have to use the 'onclick=' event and some script.
> Thanks for giving me any advice.
Use the onclick event as you said...
onclick="document.frameName.src='page.htm'"
or
onclick="document.frames[frameIndex].src='page.htm'"
to refer to a frame by name you have to add the name="frameName" attribute
to the <FRAME...> tag in the parent document.
to refer to a frame by index just count 0,..1.... and so on as the frames
appear in the page flow.... left to right, top to bottom.