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.

How to open a image on New TAB

by ricardopereira on Tue Sep 11, 2018 8:27 am

Hi people,

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

Thank you.
Posts: 2
Joined: Fri Oct 06, 2017 7:16 am

Re: How to open a image on New TAB

by access2vivek on Sun Nov 04, 2018 3: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!
Posts: 35
Joined: Wed Dec 20, 2017 3:00 am

Return to iMacros for Firefox

Who is online

Users browsing this forum: Google [Bot] and 16 guests