<html>
<head>
<script language="javascript">
function a(tt)
{
alert(tt);
}
</script>
</head> <body>
<%
tt = "abc"
Response.Write " <a href='#' onclick='a("&tt&")'>点击 </a>"
%>
</body>
</html>
<head>
<script language="javascript">
function a(tt)
{
alert(tt);
}
</script>
</head> <body>
<%
tt = "abc"
Response.Write " <a href='#' onclick='a("&tt&")'>点击 </a>"
%>
</body>
</html>
tt = "abc"
Response.Write "<a href='#' onclick=""a('"&tt&"')"">点击 </a>"
%>
tt = "xx'x"
Response.Write "<a href=""#"" onclick=""a('" & Replace(tt,"'","\'") & "')"">点击 </a>"
%>