how can I delete an information from a website through coding | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how can I delete an information from a website through coding

still learning web development guys help

7th Dec 2018, 9:16 AM
Malkiat Singh
Malkiat Singh - avatar
3 Answers
+ 3
As alternative to the css method stated by Rstar (wich doesn't technically "delete" the information from the page content but only hide it), you can use JS to select an element and remove it... or select the element and change it's innerHTML or innerText property to remove part of it. https://developer.mozilla.org/en-US/docs/Web/API/Node/removeChild
7th Dec 2018, 9:47 AM
visph
visph - avatar
+ 5
You can hide it by changing css attribute display of the element that you want to hide display:none; https://www.w3schools.com/jsref/prop_style_display.asp
7th Dec 2018, 9:21 AM
Rstar
Rstar - avatar
0
Visph I think I can try that buddy
7th Dec 2018, 9:54 AM
Malkiat Singh
Malkiat Singh - avatar