BliND123
Technical User
- Feb 26, 2008
- 2
I'm new to javascript and am currently trying something simple to automatically restart my DSL modem. I figured out how to have my script input the access code automatically with:
var PASSWORD = "************";
document.getElementById("pw0").value = PASSWORD;
So this worked, now I am trying to figure out how to get it to automatically click continue. I was looking at the this:
<INPUT type=submit class=LINKBUTTON name="Continue" value=" Continue " style="width:135"> <INPUT type=submit class=LINKBUTTON name="cancel" value=" Cancel " style="width:135">
In the source and I was thinking one of these would work:
document.getElementById("Continue").submit();
document.getElementById("Continue").click();
document.getElementById(" Continue ").submit();
document.getElementById(" Continue ").click();
But they don't want to do anything, it just stays on the page.
var PASSWORD = "************";
document.getElementById("pw0").value = PASSWORD;
So this worked, now I am trying to figure out how to get it to automatically click continue. I was looking at the this:
<INPUT type=submit class=LINKBUTTON name="Continue" value=" Continue " style="width:135"> <INPUT type=submit class=LINKBUTTON name="cancel" value=" Cancel " style="width:135">
In the source and I was thinking one of these would work:
document.getElementById("Continue").submit();
document.getElementById("Continue").click();
document.getElementById(" Continue ").submit();
document.getElementById(" Continue ").click();
But they don't want to do anything, it just stays on the page.