Understanding Xanax Prescription: What You Need to KnowXanax, the brand for alprazolam, is a medication mostly prescribed for the treatment of stress and anxiety disorders, panic attack, and stress and anxiety related to anxiety. As a member of the benzodiazepine class, Xanax works by boosting the impacts of a neurotransmitter