+ 1
How do I remove the button and text?
I’ve been trying for a while and haven’t made any progress. https://code.sololearn.com/W0986fAofqwA/?ref=app
2 odpowiedzi
+ 2
All the menu is in a div with id "menu", to hide this use:
document.getElementById ("menu").style.display = "none";
And to show this replace "none" to "box".
https://code.sololearn.com/WS315Q1TDrm0/?ref=app
0
First of all either remove onclick attribute from <button> tag or declare Start() function
Now there are two ways to remove button and text:
function myFunction()
{
//To remove permanently
document.getElementById("button").remove();
document.getElementById("Title").remove();
}
function myFunction()
{
//to hide
document.getElementById("button").style.display="none";
document.getElementById("Title").style.display="none";
}