FWIW, the ASP.Net function Page.RegisterStartupScript places the registered script at the bottom of the page, after all controls. That seems like a logical place to do it since, as you note, the JS ...
If you are in a controlled environment and you know nothing else is going to be setting the onload event, you can register (Page.RegisterStartupScript) a script that will both set the body.onload ...
一些您可能无法访问的结果已被隐去。
显示无法访问的结果