Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Input Range form Property

Input Range form Property

Input Range Object Reference Input Range Object

Example

Return the form containing The form id to which the element belongs:

var x = document.getElementById("myRange").form.id;

x

The output is:

myForm

Try it »


Definition and Usage

The form property returns a reference to the form that contains the slider control.

On success, this attribute returns the form object.

Note: This attribute is read-only.


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the form attribute

Note: Internet Explorer 9 and earlier versions do not support the HTML using the type="range" attribute .


Syntax

rangeObject

.form

Technical Details

Return Value: A reference to the form element that contains the slider control. Returns null if the slider control is not inside a form.

Input Range Object Reference Input Range Object