Input URL focus() Methode

Definitie en gebruik

focus() Deze methode wordt gebruikt om de focus te geven aan het URL-veld.

Tip:Gebruik blur() Methode Focus can be removed from the URL field.

Example

Set Focus on the URL Field:

document.getElementById("myURL").focus();

Try It Yourself

Syntax

urlObject.focus()

Parameters

None.

Technical Details

Return Value:

No Return Value.

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Support Support Support Support