In the project 0 requirements, it says that I need a Google "I'm Feeling Lucky" Button. I am not sure on how to make one. Does anyone know how to make a "I'm Feeling lucky" button. Thank you for your time.

2 Answers 2


To make an I'm feeling lucky button, use this code

<input value="I'm Feeling Lucky" aria-label="I'm Feeling Lucky" id="lucky" name="btnI" type="submit" data-ved="0ahUKEwiNm6S0jYLrAhXslnIEHYv2B30QnRsIDg">
  • You're the best! Thanks! Were looking for the solution few hours
    – LSWarss
    Commented Aug 15, 2020 at 18:42
  • no problem dude!
    – Ysoni18
    Commented Aug 16, 2020 at 19:03
  • what's aria-label and data-ved ??? Commented Jan 14, 2021 at 0:44
  • It does not work completely....by implementing this solution it provides a page saying redirect notice like "The page you were on is trying to send you to <URL of the first result> any other solution ?? Commented Jun 13, 2021 at 15:32
  • Redirect notice is an expected consequence of a security feature implemented by Google. It doesn't matter if it shows up. Commented Jan 19, 2023 at 23:29

I'm having the same issue. Currently I was thinking of using javascript to catch the value of the query and send build a function to run the search in google and catch the first element that pops up, but I'm new to js so I would like feedback if I'm in the right direction...


  • I don’t think they would accept JavaScript work tho. Has to be a way with html. Also you should post this information in the comments, not the answers.
    – Ysoni18
    Commented Aug 4, 2020 at 12:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .