How is your problem related to Microsoft? The enter key behavior is present
in all modern browsers.
Bob Lehmann
"BrianDh" <> wrote in message
news:213d01c4f8d2$d2b42b20$...
> Thank you!!!!!!!!
>
> Damn microsoft! Now I have to write vb.net, and
> javascript in one app. Yep we are moving forward! ;-D
>
> Thanks 
>
> >-----Original Message-----
> >On Wed, 12 Jan 2005 07:45:29 -0800, "BrianDH"
> ><> wrote:
> >
> >>Hi
> >>VB.Net code Behind, Web form.
> >>I am looking for a way to stop my web form application
> >>from firering a button click when the user hits the
> Enter
> >>key.
> >>I only want to button to bubmit, or exit or clear when
> >>they click the button not in random when they hit the
> >>enter key.
> >>
> >>Thanks for the help.
> >>BrianDH
> >
> >Add this little script to the page:
> >
> > <script language="javascript">
> > function BlockEnter()
> > {
> > if (window.event.keyCode == 13)
> > {
> > window.event.keyCode = 0;
> > };
> > };
> > </script>
> >
> >And add
> >onKeyPress="BlockEnter()"
> >to the body tag
> >
> >Leon.
> >.
> >