Question: Google logo hijack through javascript . Please provide the javascript code Reference: Each DOM node has an innerHTML property with the HTML of all its

Google logo hijack through javascript. Please provide the javascript code

Google logo hijack through javascript. Please provide the javascript code Reference: Each

Reference:

DOM node has an innerHTML property with the HTML of all its

Each DOM node has an innerHTML property with the HTML of all its children: var pageNodedocument.getElementsByTagName ('body) [0] You can read out the HTML like this: console. log (pageNodeinnerHTML) ; Y ou can set innerHTML yourself to change the contents of the node pageNode.innerHTML "Oh Noes!

I just changed the whole page!/p> You can also just add to the innerHTML instead of replace: pageNode.innerHTML"...just adding this bit at the end of the page

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!