Use of 'querySelector' and 'innerHTML' to add text from js blocks and files

Note: press F12 to see the code

You can see the complete code also in Repo



Main js lines/commands used:

    
        document.querySelector('#p1').innerHTML = 'test'
    
    

Back to Concepts Overview