parent.frame2.location.href="frame2"
http://javascript.html.it/articoli/l...on-javascript/