Latest web development tutorials

HTML DOM Input Range form properties

Input Range Object Reference Input Range Object

Examples

Returns <input type = "range"> id element form belongs:

var x = document.getElementById("myRange").form.id;
x The output is:
myForm

try it"

Definition and Usage

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

This property returns the form object success.

Note: This property is read-only attribute.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support form properties

Note: Internet Explorer 9 and earlier versions of IE do not support the use of type = HTML <input> element "range" attribute.


grammar

rangeObject .form

technical details

return value: Slider control that contains a reference to the form elements. If the slider control is not in the form, return null.


Input Range Object Reference Input Range Object