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> <p><a id="myAnchor" href="http://www.example.com/test.htm#part2">Example link</a></p> <p>Click the button to change the text content of the link above.</p> <button onclick="myFunction()">Try it</button> <script> function myFunction() { document.getElementById("myAnchor").text = "Click me to open example link!"; } </script> </body> </html>