Press the button — Claude
Tech stack
- Claude
Prompt
I have a web page with a heading that says 'My First Page'. I want to add a button. Here's the behavior I want: when I click the button, the heading text should change to 'You clicked it!'. Can you show me the HTML for the button and the JavaScript to make that happen, and explain what each part does?
6 views