| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/04DPATurkins/JavaScript-DOM-Tutorial/master/app.js | [Back] [Original] |
This is how you add HTML
'; //const banner = document.querySelector('#page-banner'); //console.log('#page-banner node type is:', banner.nodeType); //console.log('#page-banner node name is:', banner.nodeName); //console.log('#page-banner has child nodes:', banner.hasChildNodes()); //const clonedBanner =banner.cloneNode(true); //console.log(clonedBanner); //const bookList = document.querySelector('#book-list'); //console.log('the parent node is:', bookList.parentNode); //console.log('the parent element is:', bookList.parentElement.parentElement); //console.log(bookList.childNodes); //const bookList = document.querySelector('#book-list'); //console.log('book-list next sibling is:', bookList.nextSibling); //console.log('book-list next sibling element is:', bookList.nextElementSibling); //console.log('book-list previous sibling is:', bookList.previousSibling); //console.log('book-list previous sibling element is:', bookList.previousElementSibling); //bookList.previousElementSibling.querySelector('p').innerHTML += '| Web Proxy Viewer | New URL | Original Page |