How to handle alert box using selenium ?

Click the Try it button to display an alert box:

Visit selenium script for the above popup alert box