I've been learning javascript and today I thought I'd use jsfiddle to practise on since its quick and easy. but nothing I did was working properly, so I stripped back my code and just did a simple hello world alert on button click. Even that doesnt work!
I'm pretty confident my code is correct but it wont work. Is it jsfiddles fault or mine?
Question
Guth
I've been learning javascript and today I thought I'd use jsfiddle to practise on since its quick and easy. but nothing I did was working properly, so I stripped back my code and just did a simple hello world alert on button click. Even that doesnt work!
I'm pretty confident my code is correct but it wont work. Is it jsfiddles fault or mine?
http://jsfiddle.net/JGuth/SmaAM/
That is with the javascript in the javascript box.
If i put the javascript in <script> tags then into the HTML it works then :s As you can see here: http://jsfiddle.net/JGuth/SmaAM/1/
The two are the exact same to my knowledge. So whats going on
Link to comment
Share on other sites
2 answers to this question
Recommended Posts