in reply to posting messages to a frame inbedded in a new frame set

This is hardly Perl related. Even so, I don't think you need JS for this, you just need the target attribute of the <frame> tag. You can find info about this at the W3C's HTML page.

bbfu
Seasons don't fear The Reaper.
Nor do the wind, the sun, and the rain.
We can be like they are.