how do i close a specific window. (not the active one) with javascript.
the reason im asking is because i have a form submitting to another page AKA TARGET_BLANK.
but i have it target blank because that page checks if the stuff from the form can be inserted into the database.
BUT IF IT CANT, i give them a close(the active page) link and it closes the second page(that says oh u didnt fill in a title THE ERROR blah blah blah)
so that the user can fix the first page(the page didnt reload itself or close so the information can stay and not be lost(form inputs, textarea texts etcc)
but what if the user submits a correct form and it says so on the 2nd page. and then close that page right AND THEN... theres the first page there left un touched.
thats why im asking how can i get page 2 to close page one. with javascript