>>if (lnKey==13) >> { >> var btn = document.getElementById("btnRemoveOverdue"); >> if (btn) >> { >> btn.focus(); >> btn.click(); >> }>>
>document.getElementById("MyForm").action=document.getElementById("MyForm").action+"MyQueryString" >Tried that, but the application still refuses to cooperate :(
if (lnKey==13) { alert('Testing...'); var form = document.getElementById('frmAddItem'); form.action = 'btnRemoveOverdue=Remove+Overdue&' + form.action; alert(form.action); var btn = document.getElementById('btnRemoveOverdue') if (btn) btn.click();I also do not see any of the alert messages. May be there is another way to see that my code is being executed? The problem is that it's C++ application using some browser control to display the page that is being send by VFP application.