HELP my please!!! (and of curse excuse my for my bad english)
Marco M.
var destFrameDoc;
var eventName;
var stepNum;
function findDestFrame(){
destFrameDoc = window.content.document;
}
function firstStep(){
eventName="load";
stepNum=0;
nextStep(null);
}
function nextStep(event){
switch(stepNum){
case 0://Load homepage
alert("First step");
destFrameDoc.location.href="http://marte";
break;
case 1://Click element "entrata"
alert("Second step");
var pulsante = destFrameDoc.getElementById("entrata");
pulsante.click();
break;
case 2://End of process
alert("Third step")
window.content.removeEventListener(eventName,nextStep,false);
alert("The End");
}
stepNum++;
}
function oddsbot(){
findDestFrame();
window.content.addEventListener(eventName,nextStep,false);
firstStep();
}