Hi,
I am a JavaScript newbie (have long experience in C/C++). I have to set focus on top-left input controll on my page. I have no idea how to do that. The page is *.aspx and code-behind is C#. I think that it would be easiest in JavaScript.
Please help.
Thank you.
<script type="text/javascript"> <!-- onload = function () {document.forms[0].elements[0].focus()} // --> </script>
Is element[0] always a top-left one? what about bottom-left?[/QUOTE]
<script type="text/javascript"> <!-- onload = function () {document.forms[0]['bottom-left'].focus()} // --> </script>
Help @ilje spread the word by sharing this article on Twitter...