Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $("button").click(function(){
    return "Hello world!";
  });
  $("button").click(function(event){
    $("p").html(event.result);
  });  
});
</script>
</head>
<body>
<button>Click me to display event.result</button>
<p>This is a paragraph.</p>
</body>
</html>