In this example, we are going to use callback function and error method. when you click the button then load() method will run and alert box message will appear on the screen. It can be an error message if the website is not valid.