• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

refer name in HTML for <input type="image"< failed

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On my page I have a textbox and two buttons - First is "Cancel" button and the second is "Next" button.

Now I have a problem of "the user have to use mouse to click Next button after fill in the textbox". When the user hit "Enter" key, it triggers "Cancel" button, which is the next element.

I have the following html for this Next button.

<input type="image" src="/images/bt_next.png" name="btnNext" value="next" /<

I use the following code to force it to focus to the Next button.
onKKKeyUp="if(this.value.length==4) {this.frmXXX.btnNext.focus()}"

JavaScript complains that my btnNext is null or not an object.

My question is "is Name valid in <input type="image" ....>? Does anybody know how to attain my goal?

Got to fix it. Thanks in advance for your help.

Cathie
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic