Grazie per avermi risposto,

non saprei bene come inserire lo script, ti posto il codice delle pagine.

Lo script è per una chat, ho 2 frames quello dove risiede il form è questo:


<meta http-equiv="Content-Language" content="it">
<link rel="stylesheet" type="text/css" href="chat.css">
<base target="principale">
<body class=messages topmargin="0" leftmargin="0" rightmargin="0">

<form method=POST action="chat.asp#fondo" target=principale name="Chat">

<table border="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" height="40">
<tr>
<td width="12%"><font size="1">MESSAGGIO</font></td>
<td width="40%"><input type="text" size="50" name="chat" style="border-style: solid; border-width: 1; background-color: #F7F7F7"></td>
<td width="38%"><input type="submit" value="Invia" size="20"></td>
</tr>
</table>
<input type="hidden" value="msg" name="azione" size="20">
</form>

mentre il frame che riceve è questo:




<meta http-equiv="Content-Language" content="it">
<link rel="stylesheet" type="text/css" href="chat.css">
<base target="msg">
<body class=messages topmargin="0" leftmargin="0" rightmargin="0">

<script>
parent.msg.forms[0].chat='';
</script>


<%

Response.Expires = 10
Response.Buffer = True

if request.form("azione")="msg" and len(request.form("chat"))>0 then

'AGGIUNGI MESSAGGIO

arrmsg = Application("msg")
arrmsg = arrmsg & "#§#" & Now() &_
"|#|" & Session("ID") & "|#|" &_
Request.Form("chat")

Application.Lock
Application("msg") = arrmsg
Application.UnLock

Response.Redirect("chat.asp#fondo")

end if


'recupero messaggi

Response.write "<HTML><HEAD>"
Response.write "<META http-equiv=""REFRESH"" content=""5; url=#fondo"">"
Response.write "</HEAD>"

arrMsg = Application("msg")

if len(arrMsg) >0 then


arrMsg = Split(arrMsg, "#§#")

for j = 1 to ubound(arrMsg)
msg = Split(arrMsg(j), "|#|")
Response.write "[*]<font face=Arial Size=2 color=gray>"
Response.write msg(0)
Response.write "</font><font face=Arial Size=2 color=#333333>"
Response.write " [ "
Response.write msg(1) & " ] - "
Response.write "</font><font face=Arial Size=2 color=#FF0000>"
Response.write msg(2) & "</font>"

next

Response.write "<a name=fondo></a>"
end if

%>