ผมลองทำให้ดูน่ะครับอาจจะไม่สมบูรณ์เท่าไหร่น่ะครับ ผมใช้ jQuery เป็น framework น่ะครับ
http://code.jquery.com/jquery-1.4.2.min.js 
อันนี้เป็นส่วนของ frame หลักน่ะครับ
<!doctype html>
<html lang="en">
<frameset cols="50%,50%">
<frame noresize="noresize" name="left_frame" id="left_frame" src="left_frame.html" />
<frame noresize="noresize" name="right_frame" id="right_frame" src="right_frame.html" />
</frameset>
<noframes>
Sorry, your browser does not handle frames!
</noframes>
</html>
อันนี้เป็นส่วนของ frame ทางซ้ายมือ โดยมีเงื่อนไขว่า ถ้า random เลขได้เลข 3 จะทำการเอา url ของ google ใส่ แต่ถ้าได้เลข 1 จะทำการ reload page ครับ
left_frame.html
<!doctype html>
<html lang="en">
<head>
<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
<script type="text/javascript">
<!--
$(function() {
$('#btn').live('click', function() {
reload();
});
});
function reload() {
var num = Math.floor(Math.random() * 4);
$('<li>').html(num).appendTo('ul');
if(num == 3) {
parent.right_frame.location = "http://google.co.th";
} else if(num == 1) {
parent.right_frame.location.reload();
}
setTimeout('reload()', 1000);
}
//-->
</script>
</head>
<body>
left frame
<button id="btn">test</button>
<ul>
</ul>
</body>
</html>
และอันนี้คือส่วนของ frame ทางขวามือครับ ซึ่งไม่มีอะไรเลย - -'
right_frame.html
<!doctype html>
<html lang="en">
<head>
</head>
<body>
right frame
</body>
</html>