forumuser
05-28-2004, 11:44 AM
I want to set focus to an element on a web page. Currently when i set focus to this element, the element is positioned to the bottom of the current window. How can I get this element to be positioned at the top of the current window when it gains focus?
This is the function I am using:
<script language='javascript'>
<!--
function SetFocus(element){
document.getElementById(element).focus();
return true;
}
-->
</script>
This is the function I am using:
<script language='javascript'>
<!--
function SetFocus(element){
document.getElementById(element).focus();
return true;
}
-->
</script>