•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 423,880 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,199 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 2580 | Replies: 1
![]() |
•
•
Join Date: Nov 2003
Location: California
Posts: 203
Reputation:
Rep Power: 5
Solved Threads: 1
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
eg.. when blah.html is loaded, javascript submits a form
•
•
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation:
Rep Power: 7
Solved Threads: 108
you could use onLoad in the body tag, like:
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).
<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).
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- .net validation/javascript conflict (ASP.NET)
- Text Timer (Visual Basic 4 / 5 / 6)
- Timer event doesn't get triggered (C++)
- JavaScript Timer (JavaScript / DHTML / AJAX)
- Timer Question (Visual Basic 4 / 5 / 6)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Explorer Blocking Script
- Next Thread: javascript in mozilla firefox



Linear Mode