I have a page that I need to attach a javascript to the BODY tag when the
page first loads (but not on postback).
Is there a way to do that via codebehind?
I've attached javascript to elements before like this:
Form1.Attributes.Add("onSubmit", "myOnSubmitEventHandler();")
But the problem is that there doesn't seem to be a
System.Web.UI.HtmlControls declaration for the BODY tag.
I can actually get around the problem with a few hacks, but it'll add some
muddy HTML to the page and I'd prefer to avoid that.
-Darrel