| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| What's the code for...; onLoad | |
|---|---|
| Tweet Topic Started: Jan 1 2005, 10:19 AM (347 Views) | |
| purge.exe | Jan 1 2005, 10:19 AM Post #1 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
How can I change the onload of a document using JavaScript? For example: document.onload = doStuff(); It doesn't seem to be working. ![]() Can you help?, purge.exe |
![]() |
|
| Ben | Jan 1 2005, 02:36 PM Post #2 |
|
Quantum-locked when observed.
![]()
|
onLoad is used in the body command. Eg:
The onLoad command in the <body> tag will trigger the function do_stuff(), which will write the word "Stuff" to the page. |
![]() |
|
| chriz04 | Jan 4 2005, 10:43 AM Post #3 |
|
Member
![]() ![]() ![]() ![]() ![]()
|
true, but you can still use: window.onLoad = d0_stuff(); |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Technology Chat · Next Topic » |
| Track Topic · E-mail Topic |
8:55 PM Jul 10
|



![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)





8:55 PM Jul 10