Color Change Event For Asp Using Javascript?
<p>I wrote a javascrpit Code for Changing Color. It's working Properly.</p>

<p>Whenever I click on the File Upload Control Button, Textboxes looses their Focus and get back to the Previous State. </p>

<p>Can Any One Help For This Situation.</p>

<p>My Code IS:</p>

<pre><code>&lt;script language="javascript"&gt;
function swap_color(obj) {
    return obj.style.backgroundColor = 'white';
}

function swap_color_back(obj) {
    return obj.style.backgroundColor = 'gray';
}
&lt;/script&gt;
</code></pre>

<p>In Aspx Page:</p>

<p><code>&lt;asp:TextBox ID="txt_name" runat="server" Width="347px" Text="Name" ToolTip="Name" CausesValidation="True" onfocus="swap_color( this );" onfocusout="swap_color_back( this );"&gt;&lt;/asp:TextBox&gt;</code></p>
