wiem, że za pomocą JavaScript można ukryć niektóre elementy strony.
Czy mogę poprosić kogoś o przykład na poniższym kodzie ?
Chciałbym ukryć "search box" i/lub link: "Advanced search"
Próbowałem wykonać coś takiego:
document.getElementsByClassName("searchContainer").style.display = 'none' oraz document.getElementById("searchContainer").style.display = 'none'
W obu przypadkach nic to jednak nie pomagało.
Być może funkcja jest OK, tylko trzeba coś jeszcze dodać ?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> </head> <body> <form method="get" action="arenden_sok.asp?boid=1" target="main" name="search" ID="Form1" onsubmit="java script:DispActionIcon(1);"> <input type="hidden" name="boid" value="1" ID="Hidden1"> <table class="searchContainer" width="100%"> <tr> </tr> </table> <table class="meny"> <tr> </tr> <tr> </tr> <tr> </tr> </table> </form> </body> </html>