how to develop an HTML page with a text link and an empty div element.
I need to Add JavaScript so that when the user clicks on the link, the word “Hello” appears in the div.
When the user clicks on the link, the page should not refresh, should not redirect and should not have any errors.
Assign an element id to the div, let the function retrieve the element from document by ID and change the node value of its first child accordingly. You can also use its innerHTML property for this.
I did not understand that. Can you show me some sample code?
My answer writes code itself
Your problem is apparently that you never wrote Javascript yourself. I can recommend you a tutorial at w3schools.com: http://www.w3schools.com/JS/default.asp
Blood pressure normal? What do I change to get "magnificent"? Maybe this tiny ad?