I am trying to figure out how to create a Save & Close Window button. I have a formula - URL button that opens to a QB form in a new window that works fine using this javascript: "javascript:void(...
(1) It is subtle to understand the workflow of this example but it might be very useful to those users that temporary open up a number of tabs to create a "to do list" and when the data entry or other work on that page is completed and the page saved or navigated away from the window automatically closes. You can't get script to close a page unless the script opened a page in the first place (it is a security thing). So the script running the the first page is responsible for monitoring changes in the second page and when the URL of the second page changes the second window is close the the first page reloads.
(2) This technique can be used for a variety different tasks - the one I picked of editing records was just for the demo.
(3) I call this technique the Open Sesame & Close Sesame technique
(4) The technique is of course named after the folk tale Ali Baba and the Forty Thieves which if you are into Folkloristics as I am is canonically represented as ATU-676: according to the Aarne-Thompson-Uther Classification of Folk Tales: