Jul 22, 2003 #1 rampage60 IS-IT--Management Jul 1, 2002 73 NO When I use this string in a if statment "document.expense.name.focus()" I get this error: "Object doesn't support this property or method" What is the correct string to focus on a particular field?
When I use this string in a if statment "document.expense.name.focus()" I get this error: "Object doesn't support this property or method" What is the correct string to focus on a particular field?
Jul 22, 2003 #2 vbkris Programmer Jan 20, 2003 5,994 IN the problem may be this: expense.name any field.name will give u the name of the field as in: <input type="text" name"asd"> alert(document.expense.asd.name) //gives asd so avoid using name try changing the field name to name1 and do this: document.expense.name1.focus Known is handfull, Unknown is worldfull Upvote 0 Downvote
the problem may be this: expense.name any field.name will give u the name of the field as in: <input type="text" name"asd"> alert(document.expense.asd.name) //gives asd so avoid using name try changing the field name to name1 and do this: document.expense.name1.focus Known is handfull, Unknown is worldfull
Jul 22, 2003 Thread starter #3 rampage60 IS-IT--Management Jul 1, 2002 73 NO Thanks, I just notice the field name is not "name" but "yourname" . My bad... : ) Upvote 0 Downvote
Thanks, I just notice the field name is not "name" but "yourname" . My bad... : )
Jul 22, 2003 #4 vbkris Programmer Jan 20, 2003 5,994 IN so: document.expense.yourname.focus() is not working? can u post the code? Known is handfull, Unknown is worldfull Upvote 0 Downvote
so: document.expense.yourname.focus() is not working? can u post the code? Known is handfull, Unknown is worldfull