Hello. How to select elements on a site opened in a browser? For example, add a button in front of the picture to download it.

Closed due to the fact that off-topic participants Vadim Ovchinnikov , Alexey Shimansky , AK , Kromster , ermak0ff Jan 31 '17 at 6:22 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • “Questions asking for help with debugging (“ why does this code not work? ”) Should include the desired behavior, a specific problem or error, and a minimum code for playing it right in the question . Questions without an explicit description of the problem are useless for other visitors. See How to create minimal, self-sufficient and reproducible example . " - Vadim Ovchinnikov, Alexey Shimansky, AK, Kromster, ermak0ff
If the question can be reformulated according to the rules set out in the certificate , edit it .

    1 answer 1

    Everything is very simple. You take a picture, find a container that holds this picture, then attach these 2 buttons through document.createElement (), and on the buttons you add your events with the necessary functions. Well, change the styles as you like, the main thing is to find the necessary element.

    The task is simple and it looks like it is from the employer, if you cannot cope with this on your own, then it is better not to undertake such work at all, but prepare for it and in a few months turn again.

    Here is a list of what you might need.