View Full Version : how can I make a button of a hosted webpage clicked from my javascript program?

09-08-2008, 03:16 PM
hi friends,

suppose I have a javascript program, using this program I want to make google search button clicked along with desired search query.

is it possible for any webpage?

09-08-2008, 04:16 PM
You can not interact with a different domain's webpage because of security restrictions.

If you want to make a search you just need to set a url such as: http://www.google.com/search?q=javascript

Google also has a search api: http://code.google.com/apis/ajaxsearch/?utm_source=en-ha-na-us-syn-asa1d&utm_medium=ha&utm_campaign=en&utm_term=google%20ajax%20api


rnd me
09-09-2008, 06:49 AM
input.onclick() where input is your search button object.