How do I execute JavaScript from an iMacro script?

Meowls picture Meowls · Mar 5, 2015 · Viewed 9.2k times · Source

How do I execute JavaScript from an iMacro script?

URL GOTO=javascript:alert("TEST");

The Javascript works fine when pasting it into the address bar (by putting "javascript:" in front of the code) but unfortunately iMacros does not recognize this as a valid URL.

So since this doesn't work, what's the correct way to run JavaScript from an iMacro script?

Answer

Shugar picture Shugar · Mar 6, 2015

Try something without a dialog. For example: URL GOTO=javascript:console.log("TEST"); or URL GOTO=javascript:function<SP>test(){status="TEST"};void<SP>test();