Easy Tutorial
❮ Prop Win Localstorage Met Document Adoptnode ❯

Input Week type Attribute

Input Week Object

Example

Returns the form element type of the week field:

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

x output value is:

week

Definition and Usage

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

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


Browser Support

All major browsers support the type attribute.

Note: The <input type="week"> element is not supported in Internet Explorer or Firefox browsers.


Syntax

Technical Details

| Return Value: | String, representing the form element type of the week field | | --- | --- |


❮ Prop Win Localstorage Met Document Adoptnode ❯