a parte che i frameset sarebbe meglio non usarli
copiati queste due pagina cerca.htm e cerca1.htm
e poi lancia la cerca.htm
pagina cerca.htm
codice:
<html>
<head>
<meta name="generator" content="microsoft visual studio 6.0">
<title>cerca</title>
<script type="text/javascript">
function cerca(){
popcerca=window.open ("cerca1.htm","")
}
</script>
</head>
<body>
</p>
<input type="text" id="query" name="query">
<input type="button" value="cerca" id="btncerca" name="btncerca" onclick="cerca()">
</body>
</html>
pagina cerca1.htm
codice:
<html>
<head>
<script type="text/javascript">
function cerca(){
Query=opener.document.getElementById("query").value
document.getElementById("google").src="http://www.google.com/search?hl=en&q="+Query
document.getElementById("yahoo").src="http://search.yahoo.com/search?p=" + Query
}
</script>
</head>
<frameset rows="50%,50%" onload="cerca()">
<frame src="" id="google">
<frame src="" id="yahoo">
</frameset>
</html>
se ho capito bene dovrebbero fare quello che ti serve. Poi adattalo al tuo codice
ciao