Calling this command:
SET !VAR3 EVAL("var d=\"{{!URLCURRENT}}\"; var s=\"{{!VAR1}}\"; if(d == s){window.open('', '_self', ''); window.close();}")
gives this error:
ReferenceError: window is not defined, line: (Error code: -1001)
All I want is to close the active Firefox tab.
Thanks.
Please help to resolve an error
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
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
Re: Please help to resolve an error
Code: Select all
SET !VAR3 EVAL("var d=\"{{!URLCURRENT}}\"; var s=\"{{!VAR1}}\"; if(d == s){window.open(\'', '_self', \''); window.close();}")
Get Best iMacros scripts at http://imacrosbot.com/
Re: Please help to resolve an error
Thanks for your reply, but the problem is not solved. Same error and the Firefox tab does not close.
Re: Please help to resolve an error
Code: Select all
SET !VAR3 EVAL("var d=\"{{!URLCURRENT}}\"; var s=\"{{!VAR1}}\"; if(d == s){window.open(\'\', \'_self\', \'\'); window.close();}")
Get Best iMacros scripts at http://imacrosbot.com/
Re: Please help to resolve an error
ha, same problem 
