按钮onclick在IE8中不起作用

时间:2015-12-01 08:21:41

标签: html internet-explorer button onclick

这是我尝试在IE浏览器上执行的简单示例。但在Chrome中,Mozilla浏览器这个例子很有效。但是没有在IE浏览器上运行。如何克服这个问题。我真的坚持了下来。帮助我。例子是

<!DOCTYPE html>
<html>
<script>
function doAlert(){
alert("Alert is Working");
}
</script>
<body>
<button type="button" onclick="doAlert()">
Click me to display Date and Time.</button>
</body>
</html> 

0 个答案:

没有答案
相关问题