![]() |
buttan onClick
Hey there!
I've just started with all this website building stuff and now I'm stuck. I'm struggling with a function that I cannot get to work. The thing is actually pretty simple, but I am out of ideas and so is Google. What I want to do is: when the 'Login' button is clicked, there should appear an extension under the button, where users can fill in their log-in information. Since I am a total beginner, I tried to work it out from a bit of code from W3Schools' website. Unfortunately, it didn't work, but anyway: here is what I have got at the moment. Code:
<script type="text/javascript"> I also tried to insert <form> right into "innerHTML="here";". I'm sorry for being a total newbie, but I feel like I can't continue if this thing remains a mistery for me. So, please don't judge me too hard. I will provide some pictures: http://i45.tinypic.com/1411pp4.jpg http://i46.tinypic.com/6j0ro3.jpg |
if it's an entire form you are better off hiding it on page load and showing it when the button is pressed:
Code:
<!doctype html> |
Quote:
in other words, - is not a valid character for a variable/function name. |
| All times are GMT +1. The time now is 03:25 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.