O
ofiras
Hi,
I was trying to change a JavaScript function in a cretin page that was
loaded in webbrowser, but it didn't work. I actually changed the
webBrowser.Body.InnerHtml altering the function code to what I want,
but when I checked it worked like I didn't change anything.
I need it since when I automatically press a button in this page, it
calls a function that needs permission to proceed, therefore the
script looks like:
"function ConfirmAction()
{
if(confirm('Confirm?'))
{
return true;
}
else
{
return false;
}
}"
And I don't want this to happen, so I want to change it to:
" function ConfirmAction() { return true; } "
I will also welcome another solution, like automatically pressing OK
in the confirm window or something...
Please help,
Ofir.
I was trying to change a JavaScript function in a cretin page that was
loaded in webbrowser, but it didn't work. I actually changed the
webBrowser.Body.InnerHtml altering the function code to what I want,
but when I checked it worked like I didn't change anything.
I need it since when I automatically press a button in this page, it
calls a function that needs permission to proceed, therefore the
script looks like:
"function ConfirmAction()
{
if(confirm('Confirm?'))
{
return true;
}
else
{
return false;
}
}"
And I don't want this to happen, so I want to change it to:
" function ConfirmAction() { return true; } "
I will also welcome another solution, like automatically pressing OK
in the confirm window or something...
Please help,
Ofir.