Hi, I am creating a bookmarklet which will target images on a page. I would like to add a custom link on the bottom right corner for each image found (much like the pintrest bookmarklet does).
I know how to find each image by using this: document.body.getElementsByTagName(“img”). This seemed to work better than just calling document.images, which also returned background images and such.
So I would do this:
function checkimages() {
var images = document.body.getElementsByTagName("img");
for (var i=0; i<images.length; i++){
---- SUFF IN HERE ----
} }
That’s as far as I got. The problem I think is understanding how to align a button on the bottom right of the image.