HTML DOM FileUpload Object>>

FileUpload Object

For each instance of an <input type="file"> tag in an HTML form, a FileUpload object is created.

You can access a FileUpload object by indexing the elements array (by number or name) of the corresponding form or by using getElementById().

IE: Internet Explorer, F: Firefox, N: Netscape, W3C: World Wide Web Consortium (Internet Standard).

FileUpload Object Properties

Property Description IE  F N W3C
accept Sets or returns a list of content types, which the server processing this form will handle correctly -     Yes
accessKey Sets or returns the keyboard key to access the FileUpload object 4     Yes
align Sets or returns the alignment of the FileUpload object according to the surrounding text -     Yes
alt Sets or returns an alternate text to display if the browser does not support <input type="file"> -     Yes
defaultValue Sets or returns the initial value of the FileUpload object 4 1 3 Yes
disabled Sets or returns whether or not the FileUpload object should be disabled 4     Yes
form Returns a reference to the form that contains the FileUpload object 4 1 3 Yes
id Sets or returns the id of the FileUpload object (In IE 4 this property is read-only) 4 1   No
name Sets or returns the name of the FileUpload object 4 1 3 Yes
tabIndex Sets or returns the index that defines the tab order for the FileUpload object 4     Yes
type Returns the type of the form element. For a FileUpload object it will be "file" 4 1 3 Yes
value Returns the file name of the FileUpload object after the text is set by user input 4 1 3 Yes

FileUpload Object Methods

Method Description IE F N W3C
blur() Removes focus from the FileUpload object 4 1 3 Yes
click() Simulates a mouse-click on the FileUpload object 4     No
focus() Gives focus to the FileUpload object 4 1 3 Yes
select() Selects the FileUpload object 4     Yes

FileUpload Object Events

Syntax: object.event_name="someJavaScriptCode"

Event Description IE F N W3C
onBlur Executes some code when the FileUpload object loses focus 4 1 3  
onClick Executes some code when the FileUpload object gets a mouse click 4 1 3  
onFocus Executes some code when the FileUpload object gets focus 4 1 3  
onSelectStart Executes some code when the FileUpload object gets selected 4      

 

<< Back








   



MSN Nick Name



More Resources...





Most Viewed Services:
  1. HTML Tutorial
  2. XHTML Tutorial
  3. CSS Tutorial
  4. Javascript Tutorial
  5. DHTML Tutorial
  6. VB Script
  7. TCP/IP Tutorial
  8. ADO Tutorial
  9. MYSQL Tutorial
  10. ASP Tutorial
  11. AJAX Tutorial
  12. CFML Tutorial
  13. PHP Tutorial
  14. WML Tutorial
  15. FLASH Tutorial
  16. XML Tutorial
  17. RSS Tutorial
  18. SQL Tutorial
  19. HTML Articles
  1. Javascript Articles
  2. PHP Articles
  3. SEO Articles
  4. Web Design Articles
  5. SEO Tips
  6. Web Design Tips
  7. Articles
  8. CSS
  9. CSS Tips
  10. HTML Tips
  11. JAVASCRIPT Tips
  12. MYSQL Tips
  13. PHP Tips
  14. Money
  15. Tutorials
  16. Web Hosting



  • Home
  • Web Directory
  • Top Directoriers
  • Webmaster Directories
  • Contact
  • © Copyright 2006 All Rights Reserved By CodeDcode.Com