Javascript Help?

Javascript Help?

posted 12-06-2007 07:56 AM
Im trying to get an iframe to reload when you click submit on a form, can anyone help please.
I’m rubbish at javascript btw so can you make it as simple as possible please

I have this:

<SCRIPT language=”JavaScript”>
<!–
function refreshoutput()
{
frames[‘iframe1’].location.reload(true);
}
//–>
</SCRIPT>
</head>

<body bgcolor=”#000000″>
<form method=”POST” action=”msginput.php” onsubmit=”refreshoutput()”>
<table border=”0″ width=”100%” id=”table1″ cellspacing=”0″ cellpadding=”0″>
<tr>
<td rowspan=”2″><input type=”text” name=”message” size=”45″></td>
<td height=”39″> </td>
</tr>
<tr>
<td> <input type=”submit” value=”Send” name=”submit_btn”></td>
</tr>
</table>
</form>

——————

winingteam
Geo Newbie

Leave a Reply