Q:

How do I submit a form to JavaScript without the submit button?

<form>
   <input type="text" name="sometext">
   <input type="button" value="Send" onClick="sendsometext(this.form);">
</form>

How would that be without using the submit button (I don't want it at all), just submitting the form by pressing the Enter key.
EDITED: I don't want to submit the form at all. I just want to type some text in the input field and call the function by the Enter key. Can I do this without JS?

A:

<form>
   <input type="text" name="sometext">
   <input type="button" value="Send" onClick="this.form.submit">
</form>

Or, from the sendsometext function:
function sendsometext(form){
  form.submit();
}

To run the function when the form submits (when the user presses Enter), try the following:
<form onsubmit="sendsometext(this)">
   <input type="text" name="sometext">
</form>

If you return false from sendsometext, then the form will not submit.
Edit (Again)
Apparently you don't want to submit the form, all you want to do is let the function process the data and then do something with it. If your sendsometext function returns false, then the form should not submit:
function sendsometext(form){
  //do something with the form;
  return false;
}

and then the html code:
<form onsubmit="return sendsometext(this)">
   <input type="text" name="sometext">
</form>

If this does not work, then please specify what browser you are using, and what happens. Also post a demo page with how you have implemented it. You cannot sumbmit the form to JavaScript without the use of JavaScript (that does not make sense).

