Refresh and Find button if found popup help

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 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
vijaygujarat
Posts: 2
Joined: Wed Feb 14, 2018 3:44 pm

Refresh and Find button if found popup help

Post by vijaygujarat » Sat Sep 15, 2018 8:05 am

hi friends :) i want to make a imacros script that can refresh a shopping website's page and if stock found then it click ADD TO CART button and popup .. installed imacros on firefox but i want it to popup if i am doing any other work in other browser :)
access2vivek
Posts: 36
Joined: Wed Dec 20, 2017 10:00 am

Re: Refresh and Find button if found popup help

Post by access2vivek » Wed Nov 07, 2018 12:04 pm

You can use window.focus() which will start highlighting the window in the Taskbar.
Next, you can follow that up with an alert() function to show any message that you want. Both of these combined will look something like the following.

Code: Select all

window.focus()
alert("YOUR TEXT HERE");
I hope it helps :)
Post Reply