Ne m'y connaissant pas énormement je pense ne pas avoir bien manipulé les données:
Dans ma page html j'ai le code suivant :
<iframe id="frame_do" src="https://www.darkorbit.fr/" width="100%" height="1000px" class="do_page"></iframe>
Et dans mon script je demande la chose suivante (qui n'aboutie pas) :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| var documentIframe = document.getElementById("frame_do").contentDocument;
var identifiant = documentIframe.getElementById("bgcdw_login_form_username");
function main()
{
identifiant.value = "moi";
}
fonction_chargement = function()
{
if (identifiant == null)
{
setTimeout("fonction_chargement()", 500);
console.log("wait");
}
else
{
console.log("go");
main();
}
}
fonction_chargement(); |
j’espère que ça va vous aider à cerner mon problème ^^
Partager