java script alert如何用记事本来弄弹出框

来源:百度知道 编辑:UC知道 时间:2024/06/04 15:00:00
<html>
<head>
</head>
<body>
<html>
<head>
</head>
<body>
alert('错误');
alert('正确);
<script language="javascript">

</body>
</html>
这中间的怎么弄? 让他点了一个再弹出一个
谢谢了``

alert()是script的东西,应该放在

<script>

</script>

里面

不知道你要的是不是下面这个:

<html>
<head></head>
<body>
<button onclick="alert('错误');">点错误</button>
<button onclick="alert('正确');">点正确</button>
</body>
</html>

<html>
<head>
</head>
<body>
<html>
<head>
<script language="javascript">
alert('错误');
alert('正确);
</script>
</head>
<body>
</body>
</html>

哎,无语了,从基础的学起吧,懒得说了,看看二楼的吧