# Should I not be using app.on & invoke ?

**URL:** <https://forum.kirupa.com/t/should-i-not-be-using-app-on-invoke/650082>\
**Category:** web dev\
**Created:** [December 19, 2021, 12:12am UTC](https://forum.kirupa.com/t/should-i-not-be-using-app-on-invoke/650082 "2021-12-19T00:12:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vmars316](https://avatars.discourse-cdn.com/v4/letter/v/bcef8e/32.png) [@vmars316](https://forum.kirupa.com/u/vmars316)\
**Post date:** [December 19, 2021, 12:12am UTC](https://forum.kirupa.com/t/should-i-not-be-using-app-on-invoke/650082/1 "2021-12-19T00:12:39Z")

</div>

Hi Kirupa ,  
I enjoyed your youtube talk on WebView .  
I am having trouble with a simple browser program ,

Trying to use electron ipc communication :  
in renderer.js  
go.addEventListener(‘click’, () =\> {  
ipcRenderer.invoke(‘navigate’, url.value)  
})  
and in main.js

Program runs with no errors .  
But when I click on ‘GO’ button , nothing happens .  
Can you take a look at it :

> <https://gist.github.com/vmars316/b6947cd38d409157519ac7777a53f5d9#file-main-js-L51>
>
> There are more than three files. show original

Should I not be using app.on & invoke ?

Thanks for your help…
