I have an iframe that is made to simulate normal bing :
<iframe width="100%" height="100%" src="https://bing.com/" name="myFrame" style="position:absolute; top:0; left: 0" ></iframe>
I want to capture input that goes throught it and log it to console. I tried to use this on javascript but it didn't worked.
const keyboard = document.querySelector('.keyboard');
keyboard.addEventListener('keydown', e =>{
console.log('test')
})
Any ideas how can i solve this issue?