How to open a image on New TAB

Discussions and Tech Support specific to the iMacros Firefox add-on.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
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: 69
Joined: Wed Dec 20, 2017 10:00 am
Location: New Delhi, India

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.

Code: Select all

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!
Robust iMacros development with quick turnaround time. Drop an email at "" with your project details.
Post Reply