www.webdeveloper.com
Results 1 to 2 of 2

Thread: How to click on Google Search button using javascript?

Hybrid View

  1. #1
    Join Date
    Nov 2013
    Posts
    4

    How to click on Google Search button using javascript?

    Hello! I'm using Web Console in Firefox to run some Javascript commands and, in Google website, i would like to know how click the Google Search button using Javascript?

    To fill the Search Box i use the following command in Web Console.
    Code:
    document.getElementById('gbqfq').value='Hello World!';
    Now, i want to click on the Search Button, but i don't know how to do it!

    Thank you!

  2. #2
    Join Date
    Nov 2013
    Posts
    4
    Other thing and more important.
    There is a button in other website where i want to do the same thing. So, when i click on him and choose "Inspect Element", the inspector shows me this:
    Code:
    <div id="btnMoreVideos" class=" btn dfl btnMore" action="https://www.dfsdfsd.com/videos/more-videos" style="">
    As you can see, there is no "onclick" keyword in there. How can i do the same thing as with Google in this button?

    Thank you!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles