# Possibility to open the chat window by using custom button/js

**URL:** <https://community.hubspot.com/t/possibility-to-open-the-chat-window-by-using-custom-button-js/7563>\
**Category:** HubSpot Ideas\
**Tags:** conversations-inbox\
**Created:** [January 30, 2018, 12:41pm UTC](https://community.hubspot.com/t/possibility-to-open-the-chat-window-by-using-custom-button-js/7563 "2018-01-30T12:41:27Z")\
**Posts on this page:** 1\
**Showing post:** 27

<div class="post-metadata">

**Author:** ![Onur](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/onur/32/89120_2.png) [@Onur](https://community.hubspot.com/u/Onur)\
**Post date:** [September 6, 2018, 4:15pm UTC](https://community.hubspot.com/t/possibility-to-open-the-chat-window-by-using-custom-button-js/7563/27 "2018-09-06T16:15:38Z")

</div>

@markpetty

-

--------------------------------------------------------------------------------------------

`window.hubspot.messages.EXPERIMENTAL_API.requestWidgetOpen()`

-------------------------------------------------------------------------------------------

Thanks for the share. For the non-developers among us, how would you use it?

How do we get it to work? Would it just be a case of adding this code as a submit action to the button?

---

_[View the full topic](https://community.hubspot.com/t/possibility-to-open-the-chat-window-by-using-custom-button-js/7563)._
