nono, gli dai solo

window.nomeframe.href="pagina.htm#prima";

oppure window.top.href etc...

(ne sono quasi sicuro)