The onload attribute is part of the Event Attributes, and can be used on the following elements: Elements <body> <iframe> <img> <input> <link> <script> <style>