0

The script in this code should create a href link, but it doesn't:

  <script>
     document.getElementById('linkid').href='www.wikipedia.org';
     </script>
     <!DOCTYPE html>
    <html>
    <head>
    <title>Href test</title>
    </head>
    <body>
    <h1>Href test</h1>
    <a id='linkid'>Link for wikipedia</a>
    <table>
    </body>
    </html>
eddie
  • 345
  • 3
  • 9

0 Answers0