Here\’s the fiddle:
HTML:
<html>
<body>
<input type=\"button\" value=\"button\" onclick=\"test()\" />
</body>
</html>
JavaScript:
function test() {
alert(\'hi\');
}
As expected, it is not alerting the data!





Rating:
The post Simple javascript onclick not working appeared first on Javascript ASK.
via Javascript ASK http://javascriptask.phpfogapp.com/simple-javascript-onclick-not-working.html
No comments:
Post a Comment