THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML

Input Week focus() Method

Input Week Object Reference Input Week Object

Example

Give focus to a week field:

document.getElementById("myWeek").focus();
Try it Yourself »

Definition and Usage

The focus() method is used to give focus to a week field.

Tip: Use the blur() method to remove focus from a week field.


Browser Support

Method
focus() Yes Yes Yes Yes Yes

Syntax

weekObject.focus()

Parameters

None.

Technical Details

Return Value: No return value

Input Week Object Reference Input Week Object