Exemplu:
Codul este urmatorul:
<div id="hide" style="display:none">
CONTINUTUL CARE DORITI SA FIE ASCUNS IN SPATELE BUTONULUI
</div>
<button title="Show/ Hide" type="button" onclick="if(document.getElementById('hide')
.style.display=='none') {document.getElementById('hide')
.style.display=''}else{document.getElementById('hide')
.style.display='none'}">Titlul butonului</button>
0 comentarii
Trimiteți un comentariu