# Focus Handling

It is essential to observe the moving focus in an application page. This information is preserved for refocusing elements after rerendering. The focus triggers event firing. However, due to the high degree of flexibility in control rendering, a functionality tailored to the respective control is required. For this, the framework provides helper functions for the implementation of focus handling.

## Initial focus in Popups

Initial focus is used for specifying the first focused element when the application is loaded, popover or dialog is opened, etc.:

### sap.m.Popover

    <Popover title="Product" initialFocus="focusThis" >
    	<content>
    	<VBox>
    		<Link href="#" text="Link"/>
    		<Link id="focusThis" href="#" text="Link"/>
    	</VBox>
    	</content>
    </Popover>

See Example

For more information, see Demokit - Implementing Focus Handling