We need to capture click event of buttons within an html page loaded in browser control, currently I try to get the EEikBidOk key in OfferKeyEventL() and then judge if the focused element is the target one, but seems that we can't get the attributes (such as name and value) of focused elements, so we can't identify those elements of the same type, right? For example if there are 2 buttons in an html page, how can we distinguish each of them from the other?
Anybody knows how to capture the click event of a button? or how to get attributes of focused element?
CBrCtlSampleAppContainer::OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType)
TBrCtlDefs::TBrCtlElementType type = iBrCtlInterface->FocusedElementType();
if (aKeyEvent.iCode == EKeyDevice3 && type == TBrCtlDefs::EElementButton)
// here how can we know information of this button such as its id or name?
return iBrCtlInterface->OfferKeyEventL(aKeyEvent, aType);