Click here to Skip to main content
15,918,967 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
  <div class="sbutt">
     <a   href="#" 
    title="Add To Cart" 
  onclick="this.href='https://www.google.co.in/search?site=webhp&source=hp&q='+document.getElementById('gs').value;somefunction(this, event); return true;"> <input class="myButton" id="t" name="sbut" type="submit" value="Google Search"></a>
  <input class="myButton" name="fl" type="button" value="I'm Feeling Lucky">
        
<br>
<br>
</div>


What I have tried:

I done front end design and google search will done when I click button. But I need function as when is press enter key in text box it will navigate to google search with text inside text box.
Posted
Updated 10-Aug-17 23:25pm

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900