Attribute for <BODY ...>
onLoad = "script command(s)"
<BODY ...>| Usage Recommendation |
|---|
| use it, but don't rely on it |
We've found out that many people are come to this page looking for a variety of techniques. Some of these techniques properly use onLoadonLoad
- Redirecting the Page
- If you want the page to automatically forward somewhere else, use
. See META for Automatic Refreshing and Forwarding.<META ...> - Popup Window
cannot be used to control the size or features of the browser window, such as whether or not the window has a status bar or menus. You can control these features when opening new windows. See the Popup Window Tutorial foronLoadready-to-use scripts and examples.- Running Two Commands When The Document is Loaded
- See Running Two (or more) Commands With onLoad
- Making the Cursor Appear in a Form Field
- See Automatically Putting the Cursor in a Field
onLoadonLoad<BODY ...>
| this code | produces this |
<BODY onLoad="alert('hello world!')">
|
this page |
Copyright 1997-2002 Idocs Inc.
