关于IFRAME的简单问题

我的index.htm中包含两个iframe,分别包含的页面是f1.htm,f2.htm,现在我想点击f2.htm中一个按钮,使f1.htm变成other.htm,请问该如何实现?
[90 byte] By [hphull-代码虫子] at [2008-2-12]
# 1
onclick="parent.frames['iframe1Name'].location='other.htm'">

or

onclick="window.open('other.htm','iframe1Name')">
net_lover-孟子E章 at 2007-10-30 > top of Msdn China Tech,Web,JavaScript...
# 2
index.htm
function changeF1Src() {
document.all.f1.src = "other.htm";
}

f2.htm
function test() {
parent.changeF1Src();
}
damiyi at 2007-10-30 > top of Msdn China Tech,Web,JavaScript...