houssam_ballout Posted December 12, 2006 Share Posted December 12, 2006 HiI want to create a javascript function in which:when the user double clicks on some input form (like a text box), that function will return the name of that field?thanks Link to comment Share on other sites More sharing options...
MrAdam Posted December 12, 2006 Share Posted December 12, 2006 function showName(obj) { var name = obj.name;} <input name="someinput" ondblclick="showName(this);" /> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now