Run a JavaScript in Webbrowser with Delphi

0

I created a robot in Delphi to open a website and automatically include the data.

I'm having trouble calling a JavaScript routine that has this site, as below:

<script type="text/javascript">
function prepararInclusaoItem(id) {
    myForm = document.getElementById('faturaForm');
    myForm.action='faturamentoPrepararInclusaoItem.do';
    myForm.id.value = id;
}
function excluirItem(codigo) {
    if(confirm('Deseja realmente excluir este Item de Pagamento?')) {
        navegarPara('ExcluirItem', codigo);
    }
    return false;
}
</script>

And to access the registry has the routine that calls the script:

    

asked by anonymous 16.08.2016 / 15:19

2 answers

-1

There is this Form: WebBrowser1.EvaluateJavaScript('NomeDaFunction');

    
08.09.2016 / 12:25
-1

I used the command:

WebBrowser1.EvaluateJavaScript(vvScript);

It worked!

    
19.07.2018 / 04:37