diff --git a/client.js b/client.js new file mode 100644 index 0000000..b053090 --- /dev/null +++ b/client.js @@ -0,0 +1,16 @@ + +function handleButtonClick() { + alert('Button clicked!'); // Display an alert when the button is clicked + } + + // Add an event listener to a button element + const buttonElement = document.getElementById('myButton'); + if (buttonElement) { + buttonElement.addEventListener('click', handleButtonClick); + } + + // Other client-side JavaScript code goes here + // ... + + console.log('Client-side JavaScript code loaded.'); + \ No newline at end of file diff --git a/index.html b/index.html index b7e5d91..2379325 100644 --- a/index.html +++ b/index.html @@ -11,11 +11,12 @@ integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">