Code found in the Greybox documentation Rewritten code using the onclick method