Skip to main content

Posts

Showing posts with the label onclick

onClick() does not work in jsfiddle or no results when run the code

Error :   On the LHS of Jsfiddle.net below the  'Frameworks and Extensions' section,  if the dropdown option is set to Onload / OnDomreadey - the below code will not show any result.. <a href="#" id="dfddis"  onclick="Alertbox();">Alert</a> function Alertbox()          {              alert('The Alert!');                   } FIX Set the option in the dropdown menu to 'No wrap -<Body> ' / 'No wrap -< head>'. Yup! otherwise your body is messed up :( Reference http://jsfiddle.net/XPLr6/3/