Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Latest commit

 

History

History
19 lines (11 loc) · 1.05 KB

TASK_5.md

File metadata and controls

19 lines (11 loc) · 1.05 KB

Task 5 [Try Now]

Objectives:

  1. Remove the Form and add a notification "Website is Down! Please visit SecurityTube.net"

Ah, this is pretty easy. If you would see we have to overwrite the exisiting form and add the text.

This can be achieved by setting HTMLElement.innerText of form element.

document.forms[0].innerText = "Website is Down! Please visit SecurityTube.net";

The naive approach would be delete the form using Node.removeChild, creating an element and appending the chiild

Just in case you want to add HTML instead of text, see Element.innerHTML

For POC, Click Here