-2

I want to try to add multiple links into single images so if any one click on image then at same time multiple tabs must be open with both atached url

<a href="https://amazon.com" href="https://google.com" target="_blank"><img src="https://example/image.jpg" style="width:400px; height: 200px;">
CBroe
  • 91,630
  • 14
  • 92
  • 150
Blanca
  • 1
  • 1
  • i tried it but is is just openeing google.com one url does not opening multiple url – Blanca Aug 27 '23 at 09:48
  • Does this answer your question? [Open multiple links in Chrome at once as new tabs](https://stackoverflow.com/questions/24364117/open-multiple-links-in-chrome-at-once-as-new-tabs) – He3lixxx Aug 31 '23 at 18:20

1 Answers1

0

You can open one link with href and other links with javascript. Try this:

<a href="http://amazon.com" target="_blank" onclick="window.open('http://google.com');"><img src="https://example/image.jpg" style="width:400px; height: 200px;"></a>