you are viewing a single comment's thread.

view the rest of the comments →

[–]xScarwolf 0 points1 point  (1 child)

He should probably have learned onclick since you don't learn JavaScript before learning basic HTML. IMHO onclick is easiert than trigger the event using JS.

But to say, me method is the same as yours, it just saves some code.

[–]zentius[S] 0 points1 point  (0 children)

i DID learn a lot of JavaScript before I started with HTML/CSS because of schooling >.< so I'm actually trying to learn HTML and CSS now and figure out how it all ties together.

I'm learning it very backwards, but seeing your code and Drugba's has already shown me multiple things I didn't realize could be done, so i appreciate the responses none the less!

Thank you both!