Answer the question
In order to leave comments, you need to log in
Request to Google to search and display only one random image, how to implement?
Is there a way to implement a search for a random image for a specific query (for example, "Cats"), and in such a way that only one image is displayed in the browser window?
Required to implement the extension for Google Chrome. Accordingly, a function similar to this is needed:
function loadImage() {
var i = Math.floor((Math.random() * 365) + 1);
var cat = 'http://www.iscalio.com/cats/' + i + '.jpg';
....
}
Answer the question
In order to leave comments, you need to log in
need to use google api
https://code.google.com/p/google-api-javascript-client/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question