My jsfiddle doesn't work for a href="javascript"
Here it is said jsFiddle: no connection between html and js? Can't call simple function from button?
change the way the JavaScript block is loaded to no wrap (head)
but I can't see any option like that in jsfiddle settings!