>When our ASP.NET forms load we programmatically create a javascript function ( SetFocus() ) that we load into the HTML using RegisterClientScriptBlock(). In the ASP.NET form we have a call to this function in the onload of the body tag
>
<BODY onload="javascript:SetFocus();" ...>
>which has worked well up to now.
>
>However, (sigh, I hate third party controls) we are using a third party menu control that apparently writes an onload directive also
>
<BODY onload="document.expando="true" ... >
>Which, of course, is overriding my call to my SetFocus() function.
>
>Is there any way to work around this situation so I can still programmatically set up and call my SetFocus() function when the form loads in spite of the onload modification by the third party control?
>
>Many thanks,
>Bill
Bill;
Try this:
< BODY onLoad="document.expando="true";SetFocus();">
Tom