Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I execute JavaScript from an iMacro script?

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?

like image 334
Meowls Avatar asked Sep 29 '22 14:09

Meowls


1 Answers

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();

like image 105
Shugar Avatar answered Oct 03 '22 09:10

Shugar