The function uses the window.alert() method to display message boxes to the user.
In order to display the apostrophe in the message box it must be preceded by the back slash (\) character. This tells the interpreter to read it as a literal character.
The onClick event references a function that is imported from an external file.
Taken from: