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

HTML DOM Input Week type property

Input Week type property

Input Week Object Reference The Input Week object

Example

Return the form element type of the week field:

var x = document.getElementById("myWeek").type;

xOutput value:

week

Try it »


Definition and Usage

The type property returns the form type of the week field.

**Note:** In the examples above, Opera, Chrome, and Safari browsers return "week", but Internet Explorer and Firefox browsers return "text".


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the type property

Note: Internet Explorer or Firefox browsers do not support .


Syntax

weekObject

.type

Technical Details

Return Value: A string representing the form element type of the week field

Input Week Object Reference The Input Week object