Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to differ a InputFile textbox from the button in javascript?

 
Wander Soares
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to know how can I differ InputFile textbox from the InputFile button in javascript, that is, i need a way to do something like this:

//event.type = keyDown

if(key == enter){

if(textbox of inputFile) {
event.cancel();
}

}

Anyone knows something?
Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic