2012-10-12 7 views

답변

2
procedure TheProcThatHandlesItAll(const doc: ICefDomDocument) 
var 
    q: ICefDomNode; 
begin 
    // "q" is the ID of the text input element 
    q := doc.GetElementById('q'); 
    if Assigned(q) then 
    q.SetElementAttribute('value', 'Hello, world'); 
end 

procedure TMainForm.actDomExecute(Sender: TObject); 
begin 
    crm.Browser.MainFrame.VisitDomProc(TheProcThatHandlesItAll); 
end; 
관련 문제