HTML-Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<script language="JavaScript">
function doIt() {
   blabla();
 }
 </script>
</head>

<frameset rows="60,*" border="0">
<frame name="topframe" src="seite1.php?value1=34268322387" scrolling="no" frameborder="0" onUnload="doIt()">
<frame name="frame" src="seite2.php?value1=34268322387" frameborder="0">
</frameset>
</body>
</html>
Ungetestet, sollte aber funktionieren...