...

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



san_crazy
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?

A1ien51
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

Eric

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum