javascript事件为什么不能激活?

来源:百度知道 编辑:UC知道 时间:2024/05/03 13:17:20
按照书上的程序输入之后,运行时,激活事件后没有出现alert警示框。为什么?是不是不能调用函数?问题出在哪里?

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>事件驱动实例</title>
</head>

<body onLoad="onloadpage()" onUnload="unloadpage()">
<form action="/cgi-bin/post-query" method="post">
<table align="center">
<tr>
<td align="center">事件驱动实例</td>
</tr>
<tr>
<td align="center" width="80%">
<table width="100%" border=&quo

functoin rad_onclick()
function 写错
funtion txt_1_onblur()
function 写错

改掉就可以了

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>事件驱动实例</title>
<script language="javascript">
function onloadpage()
{alert('载入文件时间发生');
}

function onloadpage()
{alert('卸载文件事件发生');
}

function btn_1_onclick()
{alert('按钮单击事件发生');
}

function chk_1_onclick()
{alert('复选框单击事件发生');
}

functoin rad_onclick()
{alert('单选按