Skip to main content

Command Palette

Search for a command to run...

Trial code

Published
•1 min read•View as Markdown

```html

<!DOCTYPE html>

<html lang="en">

<head>

<title>Combined Code Demo</title>

<style>

/* CSS to style the button */

.click-button {

padding: 10px 20px;

background-color: #2962ff;

color: white;

border: none;

border-radius: 5px;

cursor: pointer;

font-size: 16px;

}

</style>

</head>

<body>

<button class="click-button" onclick="showAlert()">Click Me</button>

<script>

// JavaScript function to display an alert

function showAlert() {

alert('Button was clicked! (From an internal script block)');

}

</script>

</body>

</html>