If I understood correctly, you need to open the images in same window and not in new window while clicked. To achieve that, you need to add target="_self" in the <a>
tags as one of the attributes
<a href="/images/myw3schoolsimage.jpg" target="_self">link text</a>
Edited after seeing comment of GsGuri:
The question has three parts:
- If I click on my download link, the picture opens in a new window.
Well, this has been answered above.
- How do I set the button in a blog post so that my pictures are downloaded with one click?
This is what you need. An alternative would be to zip all your pictures and give that as a result.
- After using all the code, my download link remains as just a hyperlink.
If you use <a href= "url" target="_self">Download</a>
it would remain as a hyperlink. To add button, you need to use a button with formaction
defined for it.