logo

New Response

« Return to the main article

You are replying to:

  1. I wrote an app a while ago that had a search field on various web pages, but I never knew how to get around whe a user just hit return.

    using your tip, I just added "return goSearch();" to the onSubmit and it almost worked right away.

    I did have to add the "return false;" to the end of my goSearch() function otherwise, I got an error. I'm not the best at Javascript, so I'm not sure what the deal was, but it works all the time now.

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: