Pages
Home
React JS
React Native
SQL Server
C#.net
Interview
Videos
Angular
ASP.Net
AJAX
Contact Us
9 January 2014
How to set the focus in an element using Javascript?
<script>
function setFocus()
{
if(focusElement != null)
{
document.forms[0].elements["myelementname"].focus();
}
}
</script>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment