2 Replies - 15003 Views - Last Post: 02 December 2011 - 05:16 AM

#1 arvindthakur  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 133
  • Joined: 07-June 11

how to change default label of input type="file" button elemen

Posted 02 December 2011 - 03:53 AM

Hello Guys,

Well I am developing a simple page in html, in which i am using input element type="file".
By default we get a textbox and a button to browse a file from the system. Default label of this button is Browse. But I want to change the label of this button with some other name, like 'Open' or 'Select File'. But I don't
have any idea how to accomplish this.

Is anyone know how to do this?

Thanks in Advance!!!!

Regards,

Arvind

Is This A Good Question/Topic? 0
  • +

Replies To: how to change default label of input type="file" button elemen

#2 Atli  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3718
  • View blog
  • Posts: 5,990
  • Joined: 08-June 10

Re: how to change default label of input type="file" button elemen

Posted 02 December 2011 - 05:00 AM

Hey.

You can't change that. The browsers don't allow you access to it, and instead display the file input element as they see fit. (WebKit browsers, for instance, show this completely different from FF, IE and Opera.)

If you really need to alter the appearance of this type of input, check out this article:
http://www.quirksmod.../inputfile.html
Was This Post Helpful? 2
  • +
  • -

#3 arvindthakur  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 133
  • Joined: 07-June 11

Re: how to change default label of input type="file" button elemen

Posted 02 December 2011 - 05:16 AM

View PostAtli, on 02 December 2011 - 05:00 AM, said:

Hey.

You can't change that. The browsers don't allow you access to it, and instead display the file input element as they see fit. (WebKit browsers, for instance, show this completely different from FF, IE and Opera.)

If you really need to alter the appearance of this type of input, check out this article:
http://www.quirksmod.../inputfile.html


Thanks Atli..
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1