I am trying to open two different windows with the click of a button, but when i click the button it opens the same window twice. This is my function:
function flush(form) {
var custid = form.custid.value;
var url1 = "https://www.blabla.com?type=customer&id="+custid;
flushWindow1 = window.open(url1);
var url2 = "https://web.blabla.com?type=customer&id="+custid;
flushWindow2 = window.open(url2);
}
Does anyone know how I can do this?
From : JSfiddle Two windows on a Click