Do an onkeypress event.  If they press a key then give them an error message and clear the field.  That way they wont be able to enter anyting into the field by key press

  ----- Original Message -----
  From: Ciliotta, Mario
  To: CF-Talk
  Sent: Thursday, January 22, 2004 4:52 PM
  Subject: SOT: How to set a file upload input box to readonly.

  Hi,

  Does anyone know how to make a file upload input box read only.  I am having a
  problem where my users do not click the browser button but instead type the
  name of the file they want to upload and I though that if I make the input box
  read only I can stop this.  Also can the color of the <BROWSE> button be
  changed, all the buttons on the page are blue and white expect for this one.

  I searched for a CSS solution but I did not find any.

  Thanks

  Mario
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to