Here is the button:

<button name="btn" type="submit" class="btn btn-lg" id="btn">Войти</button> 

This button is from the domain I am not controlling. The site itself is inserted in the iframe. Is there any unbelievable crutch that will catch click on this button? Simply, as far as I know, for security reasons, JS cannot be hooked to it. I would be grateful for any idea.

  • The maximum that the parent frame can do is to follow the location.href of the daughter, when the transition to the page by the "enter" button is made - the daughter will change the url, which can be caught. - nick_n_a
  • Can you help with the code please? At least an example. New to JS. I can write a little while, but to correct and understand what is happening in the code is no longer a problem - Sergey

0