How can G tell if I hit enter or click Search?

Discussion in 'Google' started by exam, Nov 10, 2004.

  1. #1
    Do you have any ideas about how G can tell if I hit enter or click the search button. They can tell, because if you click the button, you get a tip that says its quicker to just hit enter. This would have to be a client-side thing wouldn't it, but how would I do this in javascript? Any ideas?
     
    exam, Nov 10, 2004 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    Look at the URL of your results. Depending on your browser you may or may not see &btnG=Google+Search depending on if you hit the button or not.
     
    digitalpoint, Nov 10, 2004 IP
  3. exam

    exam Peon

    Messages:
    2,434
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Right, but how do they add a variable to the form, based on if the button was clicked or not? This would be the only way they could tell right?

    EDIT:
    Oh, it's just the name of the submit button, which doesn't get sent if I click enter. I should have examined the source before posting. :eek:
    Thanks DP
     
    exam, Nov 10, 2004 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    Right... they aren't adding it, your browser is. :)
     
    digitalpoint, Nov 10, 2004 IP