Adding the example code
Add the simple version
Add an alert code
Applying confirm
Applying the prompt function
Merge pull request #1 from TumainiN/example

Example