<!DOCTYPE html> <script> function log() { console.log("Hello World!") } </script> <html> <button onclick="log()">Button</button> </html>