# Generating an HTML webpage at the click of a button

**URL:** <https://discourse.nodered.org/t/generating-an-html-webpage-at-the-click-of-a-button/72884>\
**Category:** Dashboard\
**Tags:** node-red-dashboard\
**Created:** [29 December 2022 11:01 UTC](https://discourse.nodered.org/t/generating-an-html-webpage-at-the-click-of-a-button/72884 "2022-12-29T11:01:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jin454](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@jin454](https://discourse.nodered.org/u/jin454)\
**Post date:** [29 December 2022 11:01 UTC](https://discourse.nodered.org/t/generating-an-html-webpage-at-the-click-of-a-button/72884/1 "2022-12-29T11:01:43Z")

</div>

Hi.  
Is there a way to generate a new webpage from the HTML sent in a message when a button is clicked on the dashboard and displayed in the browser?

Button click -\> new page/tab in browser with custom HTML code.

I know I can generate a PDF from HTML, but it needs to be saved to disk and then opened.

Thanks for any help.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [29 December 2022 12:05 UTC](https://discourse.nodered.org/t/generating-an-html-webpage-at-the-click-of-a-button/72884/2 "2022-12-29T12:05:51Z")

</div>

> [@jin454](#):
>
> Is there a way to generate a new webpage from the HTML sent in a message when a button is clicked on the dashboard and displayed in the browser?

Sort of. The dashboard button could trigger a node-red flow that generates content via a template node which sends to a ui\_template node which updates dashboard.

---

<div class="post-metadata">

**Author:** ![jin454](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@jin454](https://discourse.nodered.org/u/jin454)\
**Post date:** [11 January 2023 15:40 UTC](https://discourse.nodered.org/t/generating-an-html-webpage-at-the-click-of-a-button/72884/4 "2023-01-11T15:40:55Z")

</div>

Thanks.  
Not exactly what i wanted but i can use this.  
One more question - is there way to stop timeline on line chart when data is not received ?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [11 January 2023 22:04 UTC](https://discourse.nodered.org/t/generating-an-html-webpage-at-the-click-of-a-button/72884/5 "2023-01-11T22:04:12Z")

</div>

> [@jin454](#):
>
> One more question - is there way to stop timeline on line chart when data is not received

Well, you haven't shared what chart you are using or anything about how you are updating it. I don't use Dashboard much these days but my recollection with the chart node was that it doesn't update unless you send it data.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [10 February 2023 22:04 UTC](https://discourse.nodered.org/t/generating-an-html-webpage-at-the-click-of-a-button/72884/6 "2023-02-10T22:04:26Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
