thomasf1 thomasf1 - 1 year ago 89
HTML Question

Why does this simple JSFiddle not work?

There is some code I wanted to put into JSFiddle. It didn’t work. Narrowing it down I can’t even get this simplest of code to work:


function displaymessage() {
alert("Hello World!");

<input type="button" value="Click me!" onclick="displaymessage()" />

<p>By pressing the button above, a function will be called. The function will alert a message.</p>

box doesn’t show up in the JSFiddle.

Answer Source

Js fiddle so something like this to whatever you write


//Your code


enter image description here

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download