You can post a JS message to the parent page using window.parent.postMessage() function. I didn’t know this was possible. Developer Mozilla window post message
Can be used to interact between the windows. There is security concerns with this if the targetOrigin parameter is not set to the target with this function.