On MasterPage.master
...
function onload()
{
if(window.body_onload != null)
window.body_onload();
}
<head>
<asp:contentplaceholder runat="server" id="Headers">
</asp:ContentPlaceHolder>
<script language="javascript">
function mp_onload()
{
if(window.body_onload != null)
window.body_onload();
}
</script>
</head>
<body onload="mp_onload();">
<asp:contentplaceholder runat="server" id="Headers">
</asp:ContentPlaceHolder>
<script language="javascript">
function mp_onload()
{
if(window.body_onload != null)
window.body_onload();
}
</script>
</head>
<body onload="mp_onload();">
On Content aspx page.
function body_onload() {
....
}
From Alex Wight.
God bless Internet~