If you chose Option A on the previous screen, install this code inside an event handler like an onClick javascript method.
Product Demo

Product Demo