I'm familiar with the typical use of onload
, as in the following:
<body onload="alert('Hello, World!');">
...
</body>
Is there anywhere else in a page that onload
is valid? I can experiment to see if it will work in <script>...</script>
tags, but it might save me some time if anyone knows all the places that it's valid to use onload
.