To use image as a link in HTML, use the tag as well as the tag with the href attribute. You'll use this tag in the JavaScript function in the next An adverb which means "doing without understanding". Here is most popular and stable API, Simple and easy to use, which will redirect you to random image every single time. logo2.jpg The htmlImage variable stores the Step 3. Hii! Find centralized, trusted content and collaborate around the technologies you use most. That's all there's to it. Provide the link or URL of images in the declared array. Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. /wp-content/themes/your-child-theme/js/random_image.js.). google_ad_client = "pub-8805985990345636"; <1000){ document.write(todaysDate.getYear() + 1900); } else { document.write(todaysDate.getYear());