I have an iframe website in my website. There is a code in iframe website like this below.
// code in iframe website
document.addEventListener('keydown', (event)=> {
....
})
Iframe loaded without any error. if I do not click anywhere in iframe website, it does not work that js code. But when I click anywhere into iframe website, that code works. How can I click iframe website with js to run that code. or is there any solution ?