Welcome to The Scripts.
See this link and see if it helps.
Thanks for the welcome! This site has been helpful in the past too.
Yeah thanks for the suggestion, I looked at that site already, it helped a bit, but I still haven't found a solution (for IE) that allows me to execute the contents of what is in the onload event for an element, in this case the body tag. I've played around with document.body.onload(), window.onload(), nothing seems to work.
I don't have access to the body tag of the page I'm working on and I need to manually run the js in the body onload event.
I tried using outerHTML to grab the contents of the body tag, but the onload event code seems to be stripped off from there.
The latest thing I've been playing with is making an XMLHttpRequest to itself and putting the contents in a string variable (basically it grabs the source of the current page). Then, using regular expressions, find the onload code, and eval() it. Not a very great solution, but it might work.
I'm free to any suggestions.
Thanks!