Home >Web Front-end >HTML Tutorial >以下代码在我的浏览器上老报错_html/css_WEB-ITnose

以下代码在我的浏览器上老报错_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 09:36:52977browse

<html>		<head>		<script type="text/javacript">			function upperCase_()			{				var x = document.getElementById("fname").value;				document.getElementById("fname").value = x.toUpperCase();			}			function test()			{				alert("come on");			}		</script>	</head>	<body>		输入姓名:		<input type="text" id="fname" onblur="upperCase_()">	</body></html>


不知道是我的设置问题还是什么。,现在连进CSDN的主页它都报错了,这个代码是对的还是,有问题的啊,有问题,问题在哪?
我是原封不动地朝的啊


回复讨论(解决方案)

type="text/javacript"落下一个s

<html>        <head>        <script type="text/javascript">            function upperCase_()            {                var x = document.getElementById("fname").value;                document.getElementById("fname").value = x.toUpperCase();            }            function test()            {                alert("come on");            }        </script>    </head>    <body>        输入姓名:        <input type="text" id="fname" onblur="upperCase_()">    </body></html>

加上“s”<script>,就ok <br /> </script>

我倒 我怎么都找不到错误  谢谢

我是原封不动地朝的啊??????????

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn