THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Input Week Object


Input Week Object

The Information Week Object is new in HTML5.

The Input Week object speaks to a HTML <input> component with type="week".

bolstered in Internet Explorer or Firefox.

Access an Input Week Object

You can get to a <input> component with type="week" by utilizing getElementById():

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

Create an Input Week Object

You can make a <input> component with type="week" by utilizing the document.createElement() method:

var x = document.createElement("INPUT");
x.setAttribute("type", "week");

Input Week Object Properties

Property Description
autocomplete Sets or returns the estimation of the autocomplete property of seven days field
autofocus Sets or returns whether seven days field ought to naturally get center at the point when the page loads
defaultValue Sets or returns the default estimation of seven days field
disabled Sets or returns whether seven days field is incapacitated, or not
form Returns a reference to the structure that contains the week field
list Returns a reference to the datalist that contains the week field
max Sets or returns the estimation of the maximum characteristic of the week field
min Sets or returns the estimation of the min quality of the week field
name Sets or returns the estimation of the name characteristic of seven days field
readOnly Sets or returns whether the week field is perused just, or not
required Sets or returns whether the week field must be rounded out before presenting a form
step Sets or returns the estimation of the progression property of the week field
type Returns which sort of structure component the week field is
value Sets or returns the estimation of the esteem characteristic of seven days field

Input Week Object Methods

Method Description
stepDown() Decrements the estimation of the week field by a predefined number
stepUp() Increments the estimation of the week field by a predefined number

Input Week Object Methods

Method Description
blur() Removes center from seven days field
focus() Gives center to seven days field

Standard Properties and Events

The Input Week object likewise bolsters the standard properties and events.