O'Reilly logo

Dynamic HTML: The Definitive Reference by Danny Goodman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required