0

My jsfiddle doesn't work for a href="javascript"

enter image description here

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!

enter image description here

user310291
  • 36,946
  • 82
  • 271
  • 487
  • Click the "JavaScript + No-Library (pure JS) " text. While you can use no wrap to make sure your function is seen, strongly consider using a proper event listener instead of using inline handlers and polluting the global scope – CertainPerformance Oct 11 '19 at 08:02
  • @CertainPerformance thanks that works - my purpose is not about event listener I know there's better way, it was just about jsfiddle. – user310291 Oct 11 '19 at 14:28

0 Answers0