Hello, Not sure if I posted this before but I still have this issue--
Is there a way to submit a form and close the browser window with the click of a single button. On one of my pages, I have an F3 button and when clicked, I would like to submit a form which transmits an '3' value to my backend CICS system(in order to logoff from CICS) and also simultaneously close my browser window on the frontend

. Attached below is the code I am trying to run--
function functionkey(k){
if (k == 3)
{
document.Form1.c__Aid_I.value=k;
document.Form1.submit();
window.close();
}
else {
document.Form1.c__Aid_I.value=k;
document.Form1.submit();
}
}
What is happening is the window closes, but the form is not getting submitted prior to the window.close().
Any ideas/suggestions will be appreciated!
Thanks much..........