So I have a simple function that executes 2 forms one after the other and then I would want the page I am on to wait for 3 seconds before opening the page example.com in the same window.
Given the function below, how would I have to do it. I've tried setting the line to "setTimeout("window.open('http://example.com','_self')",3000)" but that didn't work...
function SubmitBoth()
{
document.frm1.submit();
document.frm2.submit();
window.open('http://example.com','_self');
}
I've tried setting the line to "setTimeout("window.open('http://example.com','_self')",3000)" but that didn't work.