We use the targetblank attribute, the same way as making a link open in new tab.How to clear image cache in opencart. When you link to someone elses site, though, you send users away from your own site. To keep users on your site, HTML can open the linked page in a new window or in a new tab inside the same browser window. I have an image in my gallery that i need to link to an external site. I need this to open in a new tab otherwise it will send customers off of my site, not ideal.To get a link to open in a new page, the proper HTML is Image links Adding an image that links to a specific URL. Creating a Link using HTML. The reason Im first covering regular links is because you need to know the code for this in order to add a link to an image.I really needed to have an image and link open in a new tab. How are you enjoying your experience with Open Image In New Tab? Log in to rate this extension. No ratings. Report this add-on for abuse.More information.