Write me the code for a HTML page with a button that when pressed changes the background…
- User
Write me the code for a HTML page with a button that when pressed changes the background color to a random shade of red.
- Assistant
Certainly! Here's a simple HTML page with JavaScript that accomplishes what you're asking for. The JavaScript function generates a random shade of red by altering the RGB values, keeping the green and blue components at 0 and changing only the red component.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.