Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 18-09-2009
Member
 
Join Date: Jul 2009
Posts: 73
Set focus using javascript

Recently i had made a login form and i would like to know that if any user doesn't enter their user name or password, then the cursor should be directly set to the empty field. Can any body tell me that how to set focus using javascript? Has anyone done this before? Let me know your views on the above issue.
Reply With Quote
  #2  
Old 18-09-2009
Member
 
Join Date: Apr 2008
Posts: 1,948
Re: Set focus using javascript

The HTML DOM defines a standard set of objects for HTML, and a standard way to access and manipulate HTML documents. ASP.NET Web Form controls provide a similar look and feel of the traditional HTML controls while they provide a consistent and structured interface and more robust features.
Reply With Quote
  #3  
Old 18-09-2009
Member
 
Join Date: May 2008
Posts: 2,008
Re: Set focus using javascript

All HTML elements, along with their containing text and attributes, can be accessed through the DOM. You can also use client-side scripting with these controls to provide additional functionality, such as setting the focus on an ASP.NET Web Form control. The contents can be modified or deleted, and new elements can be created.
Reply With Quote
  #4  
Old 18-09-2009
Member
 
Join Date: Apr 2008
Posts: 2,001
Re: Set focus using javascript

The HTML DOM is platform and language independent. It can be used by any programming language like Java, JavaScript, and VBScript. ASP.NET Web Form controls provide a similar look and feel of the traditional HTML controls while they provide a consistent and structured interface and more robust features. If you want you can check out the following link. This link will help you to setfocus using javascript.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Set focus using javascript"
Thread Thread Starter Forum Replies Last Post
Bluetooth Support is better on Samsung Focus S then Samsung Focus naRUTO111 Portable Devices 6 05-12-2011 06:16 PM
How to get apps from Samsung Focus to Samsung Focus S Mayuus Portable Devices 5 03-12-2011 01:20 AM
Which is preferable Samsung Focus Flash for free vs Samsung Focus S premium @nki$achi Portable Devices 9 02-12-2011 09:06 PM
Which one is better Samsung focus flash v Samsung Focus? Limitless Portable Devices 11 20-11-2011 01:39 AM
How can I get 3G+ on ATT Focus? DJ AM Portable Devices 5 20-09-2011 11:31 AM


All times are GMT +5.5. The time now is 08:19 PM.