This code will generate a random password, any where between 8-128 charecters, with lower/uppercase charecters, numbers, or special charecters. These criteria are specified by the user. When the user clicks on the 'Generate Password' button inside the application, the criteria UI that the user sees are javascript alerts, confirmations, and prompts.
Checkout my application: Link