Hi I have some code and java script, when the page initially loads I want it
to have focus on dr_tx_names. This works. The page loads a second time with
a dropdown selection and in the code behind I have
Me.dr_lst_systype.Attributes.Add("onFocus", "javascript:DoHighlight()")
as I want the focus to go to dropdown box dr_lst_systype when the page
reloads after a selection is made from dr_lst_systype. Anyhow it seems
everytime the page reloads the dr_tx_names receives focus.
<form id="Form1" method="post" runat="server">
<script language="javascript" event="onload" for="window">
Form1.dr_tx_names.focus();
</script>
<script language="javascript">
function DoHighlight()
{document.Form1.dr_lst_system.select();}</script>
--
Thanks.
Paul G
Software engineer.