Hello Dears.
I have a html code, When button clicked, a confirm dialog box will appear. how to auto click or return true for confirm boxes?
I used this in javascript source file and It works, But I couldn't use This in Autofill, That's not work.
Please Help me.
The code in source:
<script>
var realConfirm=window.confirm;
window.confirm=function(){
window.confirm=realConfirm;
return true;
};
function clickConfirm()
{
if(confirm("this is a test "))
{
alert("ok");
else{
alert("False");
}
}
</script>
<input type="button" name="btn" onclick = "clickConfirm" value="clickMe"/>
this code in source of file will work
but if I delete code in below, Then add to Autofill, That's not work.
var realConfirm=window.confirm;
window.confirm=function(){
window.confirm=realConfirm;
return true;
};