TextBox Question?

I would like to type something into my textbox and then press ENTER, it will execute a function.

I tried onFocus, onChange and onBlur but it doesn’t do what I want it to.

Here’s an example I use for onChange.

Application: <input type="text" onchange="execProg(0);">

Any comments or suggestions is greatly

Pressing Enter usually triggers the submit event on the form.

<form action="#" onsubmit="execProg(0); return false">