<input tabindex="1" title="Remove" class="button rsetButtonSmall mutexElement has-button-registered-callback" id="delete0" onclick="javascript:if(uiMethods.buttons.interceptClick.verifyClick(this)){uiMethods.removeItem('13822120', '', 'Are you sure you want to remove the selected saved filing?', deleteFiling, uiMethods.buttons.mutex.enableAll);}else{return false;}" type="button" value="Remove">
I need to click a "remove" button. But after clicking, there is a JS popup asking if I am sure. I need to click OK button or bypass it. How? I tried this VBA code but the click does nothing and makes the button unresponsive even if click it manually.
Set el = IE.document.getElementById("delete0")
el.onclick = ""
el.click
el.onclick is
function onclick(event)
{
javascript:if(uiMethods.buttons.interceptClick.verifyClick(this)) {uiMethods.removeItem('13822120', '', 'Are you sure you want to remove the selected saved filing?', deleteFiling, uiMethods.buttons.mutex.enableAll);}else{return false;}
}