start search when user hits return-key

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AnjaliPanda
    New Member
    • Oct 2007
    • 5

    start search when user hits return-key

    I want to make the search button default so that for both mozilla and IE when i wil hit enter key it will perform the search.

    Now in mozilla enter key works as search key but in IE i have to hit search button.
    But i want for both the enter key should work.
  • FullyH3ktik
    New Member
    • Sep 2007
    • 52

    #2
    use a form as the container, and the search button as a submit button, like this:
    [CODE=HTML]<form onsubmit="...">
    <input type="text" id="keywords" />
    <br />
    <input type="submit" />
    </form>[/CODE]

    Comment

    • AnjaliPanda
      New Member
      • Oct 2007
      • 5

      #3
      I want to make the search key of my project default for IE and Mozilla

      In my project in one search page the enter key makes the search in Mozilla but not in IE.
      I wnat for both IE and Mozilla the enter key should make the search.

      Comment

      • dmjpro
        Top Contributor
        • Jan 2007
        • 2476

        #4
        Originally posted by AnjaliPanda
        In my project in one search page the enter key makes the search in Mozilla but not in IE.
        I wnat for both IE and Mozilla the enter key should make the search.
        Have a look at this, it may help you :-)

        Debasis Jana

        Comment

        • AnjaliPanda
          New Member
          • Oct 2007
          • 5

          #5
          start search when user hits return-key

          i want to know how can i make the Search button in my page default so that for both IE and Mozilla, when i will hit enter key Search will happen.

          Comment

          • gits
            Recognized Expert Moderator Expert
            • May 2007
            • 5388

            #6
            hi ...

            changed thread-title to better describe the problem ... please always use a good thread title

            kind regards

            Comment

            • acoder
              Recognized Expert MVP
              • Nov 2006
              • 16032

              #7
              Merged three threads on the same topic. Please do not double and treble post.

              Comment

              • AnjaliPanda
                New Member
                • Oct 2007
                • 5

                #8
                Originally posted by gits
                hi ...

                changed thread-title to better describe the problem ... please always use a good thread title

                kind regards

                Thanks a lot. as i am a new member in these type of sites so i dont have much idea. From next time i will take care of that.

                Comment

                • dmjpro
                  Top Contributor
                  • Jan 2007
                  • 2476

                  #9
                  Originally posted by AnjaliPanda
                  i want to know how can i make the Search button in my page default so that for both IE and Mozilla, when i will hit enter key Search will happen.
                  How much you tried?
                  Post that Code.
                  Actually I don't get your Point.
                  My "LINK" does not work?

                  Debasis Jana

                  Comment

                  Working...