SVGElement: autofocus property
        
        
          
                Baseline
                
                  Widely available
                
                
              
        
        
        
          
                
              
                
              
                
              
        
        
      
      This feature is well established and works across many devices and browser versions. It’s been available across browsers since February 2023.
The autofocus property of the SVGElement interface contains a boolean value reflecting the autofocus HTML global attribute. It indicates whether the SVG element should be focused when the page loads or when the element becomes shown if the SVG element is inside a <dialog> or a popover.
Value
A boolean value.
Specifications
| Specification | 
|---|
| HTML> # dom-fe-autofocus>  | 
            
Browser compatibility
Loading…