How to open a image on New TAB

Discussions and Tech Support specific to the iMacros Firefox add-on.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

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
ricardopereira
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.
access2vivek
Posts: 69
Joined: Wed Dec 20, 2017 10:00 am
Location: New Delhi, India
Contact:

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
iimPlay(code);
This should probably do the trick!
Robust iMacros development with quick turnaround time. Drop an email at "access2content@gmail.com" with your project details.
Post Reply