How do I disable an ImageButton until the web page is completely loaded?
Posted on 2011-10-01
My current code:
<body onload=populateCurrDate('tbArrDate', 'tbDSDateTime', 'tbALocDateTime', 'tbPLocDateTime'); document.formsbtnArrDate.disabled=false;">
where btnArrDate is the ImageButton that I want to enable. But, I get the following runtime error: 'document.forms.0.btnArrDate' is null or not an object. But, it is establish later in the <form> ....</form> definition. And, I thought onload executes after the page is loaded. If not, what do I use?