79838467

Date: 2025-12-05 01:03:39
Score: 0.5
Natty:
Report link

<!DOCTYPE html>
<html>
<head>
<style>
p {color:olive};
</style>
</head>
<body>
<h1>ABSTRACT ART</h1>
<canvas id="myCanvas">
Your browser does not support the canvas tag.
</canvas>
<script>
let canvas = document.getElementById("myCanvas");
let ctx = canvas.getContext("2d");
ctx.fillStyle = "#FF0000";
ctx.fillRect(0, 0, 80, 80);
ctx.fillStyle = "#F27F06";
ctx.fillRect(40, 40, 80, 80);
</script>
<p>The above is abstract art made by the computer.</p>
<h2>The button Element</h2>
<button type="button" onclick="alert('Thank you for clicking the button. Now, please press the OK below! ↓')">Click Me!</button><br>
Field1: <input type="text" id="field1" value="Hello World!"><br>
Field2: <input type="text" id="field2"><br><br>
<button onclick="myFunction()">Copy Text</button>
<p>A function is triggered when the button is clicked. The function copies the text from Field1 into Field2.</p>
<script>
function myFunction() {
  document.getElementById("field2").value = document.getElementById("field1").value;
}
</script>
</body>
</html>

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: tTTtTTtTT