0
Hello, I have the following case, an external page opens inside my iframe, I need javascript to simulate the "TAB" key until I reach the login field. so much so why my problem is in finding a way to make you simulate that "TAB" without any other event has been triggered, just loading the page.
follows example, but not
<?php
echo '<script type="text/javascript" src="js/jquery.js"> </script>';
?>
<html>
<iframe src="http://alelo.com.br/consulta-saldo-extrato-alelo.html" style="width:100%; height:100%">
<script>
alert('.-.');
</script>
</html>
Explain further what you want, the question is not clear.
– Israel Sousa
summary a key, when pag load want q be simulated "tab" until you reach the card numer field.
– Raphael Araujo
I marked as duplicate of your other question. As I had answered there this domain does not allow CORS, and it will not be possible to access
document
of that page.– Sergio
Keyboard has nothing to do with Cors but check how you want, if you do not know how to leave it there until someone who knows how to answer vlw!
– Raphael Araujo
Just simulate a tab... this can’t be that hard
– Raphael Araujo
@Raphaelaraujo to manipulate a tab you have to touch the events of the iframe to fire
keypress
, then you must have access todocument
and CORS is not linked on that site. It is not bad will, some sites turn off CORS to prevent a program try for example to login and test passwords until right.– Sergio