# Question about the "On Load" attribute

**URL:** https://forum.kirupa.com/t/question-about-the-on-load-attribute/319383
**Category:** web dev
**Created:** [February 18, 2011, 1:34pm UTC](https://forum.kirupa.com/t/question-about-the-on-load-attribute/319383 "2011-02-18T13:34:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![complete](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@complete](https://forum.kirupa.com/u/complete)
#### Post date: [February 18, 2011, 1:34pm UTC](https://forum.kirupa.com/t/question-about-the-on-load-attribute/319383/1 "2011-02-18T13:34:37Z")

</div>

Is “On Load” or “OnLoad” an attrubute of the \<html\> tag or the \<body\> tag? I want to run a javascript function when my web page loads.
