---
title: "Discussion on \"Does hashnode widget support Javascript\" | Hashnode"
description: "Discussion on \"Does hashnode widget support Javascript\". First let's make a simple widget named `alert`:\n<script>\nconsole.log('hello from widget');\n\nlet count = 0;\n\nfunction click_button(){\n    let str = `click button from widget ${++count} times`;\n    console.log(str);\n    document.getElementById(\"demo\")...."
url: "https://hashnode.com/posts/does-hashnode-widget-support-javascript/659f468291b8f0422d24708f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Does hashnode widget support Javascript](https://blog.iread.fun/does-hashnode-widget-support-javascript?utm_source=hashnode&utm_medium=feed)

First let's make a simple widget named \`alert\`: <script> console.log('hello from widget'); let count = 0; function click\_button(){ let str = \`click button from widget ${++count} times\`; console.log(str); document.getElementById("demo")....

Jan 11, 2024 · 1 min read · blog.iread.fun  
Read the article

-   [#widgets](https://hashnode.com/tag/widgets)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#hashnode](https://hashnode.com/tag/hashnode)

## Written by

[v like](https://hashnode.com/@likev)

@likev

  
[View profile](https://hashnode.com/@likev)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
