超链接点击无反应,不知道为什么?
代码:
<%@page contentType="text/html;charset=utf-8" language="java"%>
<%@page import="java.util.*" %>
<%String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%>
<%
String docPath = (String)request.getAttribute("pdfSrc");
System.out.println("docPath:"+docPath);
%>
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<META http-equiv="Content-Style-Type" content="text/css">
<META http-equiv="Content-Script-Type" content="text/javascript">
<TITLE>Checking if Acrobat Reader installed</TITLE>
<SCRIPT for="window" event="onload">
<!--
document.all [
document.all.PDFNotKnown ? "IfNoAcrobat" : "IfAcrobat"
] .style.display = "block";
//--></SCRIPT>
<script type="text/javascript">
document.getElementById("IfNoAcrobat").innerHTML="<a href='javascript:void(0);' onclick='xiazai();' class='btn_left'>wewe</a>";
function xiazai()
{
document.thisform.action = "<%=basePath%>pages/docManage/document/readerDown.jsp?path=software/AdobeReader.exe";
document.thisform.submit();
}
</script>
</HEAD>
<BODY>
<form name="thisform" action="" method="get">
<NOSCRIPT>
=aCannot determine if you have Acrobat Reader (or the full Acrobat)
installed <FONT size="-1">(because JavaScript is unavailable or
turned off)</FONT>.
</NOSCRIPT>
<DIV id="IfNoAcrobat">
<font color="red">您需要先安装Adobe Reader才能正常浏览文件,点击下载<a href="<%=basePath%>pages/docManage/document/readerDown.jsp?path=software/AdobeReader.exe">AdobeReader</a>。</font>
</DIV>
<OBJECT type="application/pdf" width=0 height=0 >
<DIV id="PDFNotKnown" style="display:none"> </DIV>
</OBJECT>
<DIV id=showdiv
style="Z-INDEX: 0; LEFT:10px; WIDTH: 990px; POSITION: absolute; TOP: -8px; HEIGHT: 10px">
<object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" width="990" height="700" border="0" top="-10" name="pdf">
<param name="toolbar" value="false">
<param name="_Version" value="65539">
<param name="_ExtentX" value="20108">
<param name="_ExtentY" value="10866">
<param name="_StockProps" value="0">
<param name="SRC" value="<%=basePath %>document/<%=docPath %>">
</object>
</DIV>
</form>
</BODY>
</HTML>