I have one query, for that I wanted to prepare a JSFiddle. But it's not working for a small click program. Which has just two lines of code.
HTML
<body>
<button onclick="javascript:launchdialog();">Click Me</button>
</body>
JavaScript
function launchdialog() {
alert('test');
}
I didn't find anything wrong in just two lines of code. Please have a look at this JSFiddle - http://jsfiddle.net/g47qqzra/