Name

fileUpload — NN 3 IE 4 DOM 1

Synopsis

The fileUpload object is a form control generated with an INPUT element whose TYPE attribute is set to "file". The “fileUpload” term does not appear in scripts, but it is the way Netscape casually refers to this object.

HTML Equivalent

<INPUT TYPE="file">

Object Model Reference

NN

[window.]document. formName . elementName

[window.]document.forms[i].elements[i]

IE

[window.]document. formName . elementName

[window.]document.forms[i].elements[i]

[window.]document.all. elementID

Properties

accessKey

isTextEdit

offsetParent

parentElement

tabIndex

className

lang

offsetTop

parentTextEdit

tagName

disabled

language

offsetWidth

size

title

document

name

outerHTML

sourceIndex

type

form

offsetHeight

outerText

style

value

id

offsetLeft

   

Methods

blur( )

getAttribute( )

removeAttribute( )

click( )

handleEvent( )

scrollIntoView( )

contains( )

insertAdjacentHTML( )

select( )

focus( )

insertAdjacentText( )

setAttribute( )

Collections/Arrays

all[]

children[]

filters[]

Event Handler Properties

Handler

NN

IE

DOM

onblur

3

4

n/a

onchange

n/a

4

n/a

onclick

n/a

4

n/a

ondblclick

n/a

4

n/a

onfilterchange

n/a

4

n/a

onfocus

3

4

n/a

onhelp

n/a

4

n/a

onkeydown

n/a

4

n/a

onkeypress

n/a

4

n/a

onkeyup

n/a

4

n/a

onmousedown

n/a

4

n/a

onmousemove

n/a

4

n/a

onmouseout

n/a

4

n/a

onmouseover

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.