Answer to Question #323920 in HTML/JavaScript Web Application for lucky

Question #323920

DOM Manipulations

The goal of this coding exam is to quickly get you off the ground with the DOM Manipulations.

Use the below reference image.


1
Expert's answer
2022-04-05T13:18:30-0400
<!DOCTYPE html>
<html>
<head>
<title>Hello html</title>
</head>
<body>
    <p id="text_change"></p>
    <button onclick="AddText()">Add text</button>
    <button onclick="RemoveText()">Romove text</button>
</body>
<script>
    function AddText(){
        let Text = document.getElementById('text_change');
        Text.innerHTML  = "Hello js";
    }
    function RemoveText(){
        let Text = document.getElementById('text_change');
        Text.innerHTML  = " ";
    }
    </script>
</html>

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS