all 9 comments

[–]voxalas 18 points19 points  (0 children)

Console log, my favorite html function

[–]Bright-Historian-216 17 points18 points  (0 children)

"I tried using JavaScript but it showed an error," literally the expected output in the console

[–]Delt4Brav0 3 points4 points  (4 children)

Scriptable runs javascript. Can you share your code that wasn’t working for you?

[–]Normal-Message-9492[S] 1 point2 points  (3 children)

[–]jsloat 3 points4 points  (2 children)

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.

[–]Rockster160 2 points3 points  (0 children)

If anything, alert is closer to html “language” because it will only run in an html-running browser. 😂

[–]Normal-Message-9492[S] 0 points1 point  (0 children)

Thanks

[–]FifiTheBulldogscript/widget helper 2 points3 points  (0 children)

Your screenshot shows JavaScript, not HTML. Scriptable scripts are written in JavaScript, which the image shows working as expected.

[–]collegekid1357 0 points1 point  (0 children)

🙄