I am an amateur at Programming and Web Design, and my knowledge is limited.
I am trying to modify a form data on a website I link to (just put values in their forms). I'm quite sure my code is right, because I can inject it in the address bar and it works.
So here's what doesn't work:
window.location=...
window.onload=doStuff;
function doStuff() {
//modify form data....
}
How can I get this to work, because the Javascript is not waiting for the page to load?
I am trying to modify a form data on a website I link to (just put values in their forms). I'm quite sure my code is right, because I can inject it in the address bar and it works.
So here's what doesn't work:
window.location=...
window.onload=doStuff;
function doStuff() {
//modify form data....
}
How can I get this to work, because the Javascript is not waiting for the page to load?