maitung
02-24-2003, 07:23 PM
What I'm trying to do is this:
After a user click on Submit button, they will be lead to another page. And here goes mine, but it doesn't work, please point out to me the mistakes:
<script language=javascript>
function success()
{
window.location="newpage.htm";}
</script>
<form method=some_method name=some_name onSubmit="success();" >
<input type=textarea >
<input type=submit value=go >
</form>
certainly I use a ready-made cgi file to send info, but what I need is loading the newpage.htm into the window.
Please help me with that basic thing to you but complicated to me.
After a user click on Submit button, they will be lead to another page. And here goes mine, but it doesn't work, please point out to me the mistakes:
<script language=javascript>
function success()
{
window.location="newpage.htm";}
</script>
<form method=some_method name=some_name onSubmit="success();" >
<input type=textarea >
<input type=submit value=go >
</form>
certainly I use a ready-made cgi file to send info, but what I need is loading the newpage.htm into the window.
Please help me with that basic thing to you but complicated to me.