Im kind of confused on what your trying to do, but I think what you want
to do is:

<input type="button" value="Clear Chat"
onClick="javascript:window.location'/cgi/chat_clear.pl'"></h3>

You can also use javascript to submit a form by using
document.formname.submit();

Hope that helps.


On Wed, 6 Jun 2001, David Gilden wrote:

> Hi,
>
> In the following:
>
> <form name="form" action="/cgi/chat_writer.pl" target="messages" method="POST">
> Name: <input type="text" size="30" name="name"><br>
> Email: &nbsp;<input type="text" size="30" name="email"> <br>
>
> <h3>Type your chat message <input type="submit" value="Send message!">
>
> <input type="button" value="Clear Chat" onClick="/cgi/chat_clear.pl"></h3>
>
> <!--  This does not work here, all I want to do is call, which clears out a data 
>file on
> the sever, we do not anything returned, in fact can you have a cgi where after
> clicking the submit button you call a script, it does something like log something 
>like
> a users email, and not return anything to the browser?  -->
>
> <input type="button" value="Clear Message" onClick="document.form.chat.value=' '">
>
>
> <!--Above how do I clear the textarea 'chat', with out a leaving a leading space, '' 
>won't work on my Mac using ie5 -->
>
> <textarea cols="60" rows="4" name='chat'></textarea></form></td>
>
>
>
> Thanks for any pointers on these two issues,
> Thanks
>
> Dave
>
>
> *====================================================*
> *   Cora Connection Your West African Music Source   *
> *   http://www.coraconnection.com/                   *
> *   Resources, Recordings, Instruments & More!       *
> *====================================================*
>

Reply via email to