Update parent (top) window fro a child window when a value from child window is selected


#1

Hi wonderful people of electron

i am very new to electron and i have a small question, please let me know how can i instantly update a parent window when a certain value from the child window is selected .

for example if i have a input value on a browserwindow along with a button and when i click the button a child window appears with all the relavent data that can be placed on the input and when i select the value from child window how can i receive the variable value on the parent window object .

Thanks for all the help


#2

Hey I figured it out, it is in the electron documentation

we can send a response to a different window through win.webContents.send command from the main process and we can receive using ipc renderer process.

Thanks