I am expecting that the on button click action should popup the alert message. But I am unable to figure out the root cause that code doesn't work as expected.
Here is my code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<body>
<script type="text/javascript">
function click() {
alert("this is an alert");
}
</script>
<form>
<input type="button" value="Click Here" onclick="click()" />
</form>
</body>
</html>