Week 4 Example 4
001window.onload = function(){ 002 const link1 = document.getElementById("link1"); 003 const linkURL = link1.getAttribute('href'); 004 if(linkURL!=null) 005 console.log(linkURL); 006}
This site will be updated live during the sessions
001window.onload = function(){ 002 const link1 = document.getElementById("link1"); 003 const linkURL = link1.getAttribute('href'); 004 if(linkURL!=null) 005 console.log(linkURL); 006}