How would I make a timed event that javascript would do when the page is loaded?
eg.. when blah.html is loaded, javascript submits a form
How would I make a timed event that javascript would do when the page is loaded?
eg.. when blah.html is loaded, javascript submits a form
you could use onLoad in the body tag, like:
<BODY onLoad="formname.submit();">
And if you want to make the function you call wait a given amount of time, you could use "setTimeout" to have it wait a given number of milliseconds (I think it's MS).
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.