Hello! I am Superior_Nexus. I am new here, as I am new to the whole scripting scene.
My question is, can somebody help me with this little piece of JavaScript code!? Please. I read the article on www.w3schools.com many times, and I just don't understand it.
I want to make the button work both ways, "forwards" and "backwards".
I have the "forward" done, now I just ask for help in setting up the "backwards" part.
I will only post my javascript code for now, but if you need more, then i'll be happy to post that too.
Note: I am not a professional by any means, and my code is probably the poorest some of you have ever seen, I do this for fun.
Here is my code.
<script>function menu() {var x = document.getElementById("hidden_menu");x.style.width = "20%";x.style.transition = "width 1s";var x = document.getElementById("wrapper");x.style.width = "80%";x.style.transition = "width 1s";}</script>
How would I get this button to reverse this action?
Thank you in advance!