Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How can I run JavaScript in the Thimble preview?

  • 1 reply
  • 4 have this problem
  • 6 views
  • Last reply by michd

more options

When I create a JavaScript file, a default alert message shows up in the code section, but the alert does not appear in the preview, or when I click the "Refresh the Preview" button. Is this a bug, or is there a different way to run the script?

When I create a JavaScript file, a default alert message shows up in the code section, but the alert does not appear in the preview, or when I click the "Refresh the Preview" button. Is this a bug, or is there a different way to run the script?

Chosen solution

Solved my own problem by linking to the js file in the html. For some reason I was thinking they were linked automatically. :|

Read this answer in context 👍 2

All Replies (1)

more options

Chosen Solution

Solved my own problem by linking to the js file in the html. For some reason I was thinking they were linked automatically. :|