Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <textarea id="myTextarea"> At w3schools.com you will learn how to make a website. We offer free tutorials in all web development technologies. </textarea> <p>Click the button to change the width of the text area.</p> <button type="button" onclick="myFunction()">Try it</button> <script> function myFunction() { document.getElementById("myTextarea").style.width = "500px"; } </script> </body> </html>