# How to implement OnBrowserDialogue event

**URL:** <https://forums.unrealengine.com/t/how-to-implement-onbrowserdialogue-event/486567>\
**Category:** C++\
**Tags:** webbrowser, unreal-engine, question, CPP\
**Created:** [July 24, 2021, 8:59pm UTC](https://forums.unrealengine.com/t/how-to-implement-onbrowserdialogue-event/486567 "2021-07-24T20:59:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guardianl67](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Guardianl67](https://forums.unrealengine.com/u/Guardianl67)\
**Post date:** [July 24, 2021, 8:59pm UTC](https://forums.unrealengine.com/t/how-to-implement-onbrowserdialogue-event/486567/1 "2021-07-24T20:59:18Z")

</div>

Hello, I just started messing with the SWebBrowser provided in unreal engine, and I have the need to implement a way to read the text from an alert that occurs in the web browser. I can see from the documentation ([IWebBrowserDialog | Unreal Engine Documentation](https://docs.unrealengine.com/5.0/en-US/API/Runtime/WebBrowser/IWebBrowserDialog/)) That there is a way to listen for a dialogue box popup, and retrieve the text from it. My issue is it mentions using the OnBrowserDialogue event, but I don’t understand how to implement this event in C++. Any help is greatly appreciated.

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [July 25, 2021, 1:09pm UTC](https://forums.unrealengine.com/t/how-to-implement-onbrowserdialogue-event/486567/2 "2021-07-25T13:09:27Z")

</div>

Hello! If you are trying to create Slate event, then you can take a look at FOnClicked event and SButton that is using it.

---

<div class="post-metadata">

**Author:** ![Guardianl67](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Guardianl67](https://forums.unrealengine.com/u/Guardianl67)\
**Post date:** [July 25, 2021, 11:31pm UTC](https://forums.unrealengine.com/t/how-to-implement-onbrowserdialogue-event/486567/3 "2021-07-25T23:31:16Z")

</div>

I have the slate event created. I am trying to handle the alert popup that is generated from an instance of SWebBrowser. I need to access the continue function defined in IWebBrowserDialog
