这个是jsp页面直接写好的代码,点击图片IE可以跳转
<li class="brand_logo">
<a href="<%=basePath%>/front/productlist.do?method=detail&productid=${product.productid}">
<img src="<%=basePath%>${style.imgPath140}" width="163" height="159" />
<span id="signId" style="display: none">${product.productid}**<%=basePath%>${style.imgPath140}**${product.name}**${product.sellprice}
</span>
</a>
<li>
下面这段代码是js中的,点击图片,IE却不跳转,其它浏览器可以的,怎么回事啊
content+=("<li class=\"brand_logo\" style=\"list-style:none\">" +
"<a href=\"/front/productlist.do?method=detail&productid="+ wUrl[0]+"\">" +
"<img src= \"" + wUrl[1] + "\" width=\"163\" height=\"159\"/>" +
"<span id=\"signId\" style=\"display: none\">" +wUrl[0]+"**"+wUrl[1]+"**"+wUrl[2]+"**"+wUrl[3]+
"</span>" +
"</a><li>");
document.getElementById("history").innerHTML=content;
<li class="brand_logo">
<a href="<%=basePath%>/front/productlist.do?method=detail&productid=${product.productid}">
<img src="<%=basePath%>${style.imgPath140}" width="163" height="159" />
<span id="signId" style="display: none">${product.productid}**<%=basePath%>${style.imgPath140}**${product.name}**${product.sellprice}
</span>
</a>
<li>
下面这段代码是js中的,点击图片,IE却不跳转,其它浏览器可以的,怎么回事啊
content+=("<li class=\"brand_logo\" style=\"list-style:none\">" +
"<a href=\"/front/productlist.do?method=detail&productid="+ wUrl[0]+"\">" +
"<img src= \"" + wUrl[1] + "\" width=\"163\" height=\"159\"/>" +
"<span id=\"signId\" style=\"display: none\">" +wUrl[0]+"**"+wUrl[1]+"**"+wUrl[2]+"**"+wUrl[3]+
"</span>" +
"</a><li>");
document.getElementById("history").innerHTML=content;
onclick=“window.open('路径就行')”;<input type="button" name="" value="" class="btn" onclick="window.open(‘’)"/>