Run ❯
zig
.
com
Result Size:
625 x 565
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <p><a id="myAnchor" target="_blank" href="http://www.example.com:443/test.htm#part2">Example link</a></p> <p>Click the button to change the hostname of the link above.</p> <p><b>Tip:</b> Open the link and look in the address bar before and after you have clicked the "Try it" button (Note: these links does not exist, this is just an example).</p> <button onclick="myFunction()">Try it</button> <p id="demo"></p> <script> function myFunction() { document.getElementById("myAnchor").host = "www.somenewexamplepage.com"; document.getElementById("demo").innerHTML = "The hostname of the Example link was changed."; } </script> </body> <!-- /jsref/tryit.asp?filename=tryjsref_anchor_hostname2 Thu, 06 Feb 2025 20:00:38 GMT --> </html>