OptionMenu.activateItem

void activateItem(uint index)

Activates the #WebKitOptionMenuItem at index in menu.

Activating an item changes the value of the element making the item the active one. You are expected to close the menu with [webkit.option_menu.OptionMenu.close] after activating an item, calling this function again will have no effect.

Parameters

indexthe index of the item