How to open a image on New TAB

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:


Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.
Post Reply
Posts: 2
Joined: Fri Oct 06, 2017 2:16 pm

How to open a image on New TAB

Post by ricardopereira » Tue Sep 11, 2018 3:27 pm

Hi people,

So, i have a question, how to open a imagem link on new TAB ( Tab=2 ) ?

Thank you.
Posts: 36
Joined: Wed Dec 20, 2017 10:00 am

Re: How to open a image on New TAB

Post by access2vivek » Sun Nov 04, 2018 10:52 am

You can copy the HREF attribute of the image and then open a new tab. Use URL GOTO= to open that image as follows.

var code="CODE:";
code+="TAG POS=1 TYPE=IMG ATTR=* EXTRACT=HREF\n"; // This gets the link attribute of the image.
code+="TAB OPEN\n"; // Open a new Tab
code+="TAB T=2\n"; // Go to that tab
code+="URL GOTO={{!EXTRACT}}"; // Open the URL of the image

This should probably do the trick!
Post Reply