Ok so I'm working on a script and one of the requirements of it is a function occurring when the page loads. I know I can edit the body tag to do this easily but I want to know if there is a way to do this without editing the body tag. I know this is a bit odd but my reason for this is for example if I wanted to use this script somewhere I didn't have access to the body tag i.e. a forum and I wanted to use this script as a footer. Does anyone know a way I can do this. I just found out that I can add a second body tag later in the page that includes the onload that I need. I figured this would be a very bad way of doing things, is that a perfectly fine way to do this or is this going to cause problems with other browsers?