<a href="${pageContext.request.contextPath }/commitreportchannel.do?ano=${userareano }"
onclick="window.parent.left.location.reload()"
target="main">从网上看了说onclick先执行
但是我想让href 里边的内容先执行,再执行onclick事件
求教如何实现,谢谢
onclick="window.parent.left.location.reload()"
target="main">从网上看了说onclick先执行
但是我想让href 里边的内容先执行,再执行onclick事件
求教如何实现,谢谢
<a href="#"
onclick="location.href='${pageContext.request.contextPath }/commitreportchannel.do?ano=${userareano ';window.parent.left.location.reload()"
target="main">
这样行不?
<a href="#"
onclick="window.parent.left.location.reload();location.href='${pageContext.request.contextPath }/commitreportchannel.do?ano=${userareano ';"
target="main">
<body onload="window.parent.left.location.reload()">