You could use Google AJAX Search API to put google search on your page:
As for getting links from a page, it depends on how you want to do this. You could use AJAX to fetch a url and use getElementsByTagName(‘a’) to get all anchor tags, and then loop through the results to look for the href attribute.
Or if you are doing something server side, say in PHP, you could get the URL in a DOM object and get links from that.
I would start with the Google AJAX API and go from there.
October 12th, 2007 at 3:29 am
You could use Google AJAX Search API to put google search on your page:
As for getting links from a page, it depends on how you want to do this. You could use AJAX to fetch a url and use getElementsByTagName(‘a’) to get all anchor tags, and then loop through the results to look for the href attribute.
Or if you are doing something server side, say in PHP, you could get the URL in a DOM object and get links from that.
I would start with the Google AJAX API and go from there.