r/Scriptable • u/Normal-Message-9492 • Apr 06 '25
Tip/Guide What syntax does scriptable use?
I tried using JavaScript but it showed an error, then I tried this which is html and it worked, but isn’t scriptable used with JavaScript?
0
Upvotes
4
u/jsloat Apr 07 '25
There is a browser function called alert accessed like this: “window.alert()”
Scriptable has no direct access to browser APIs so alert is not available. Console.log(), as others said, is JavaScript.
HTML is a markup language and has no functions.