本文介绍了如何使用javascript在点击超链接时显示微调器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I have a hyperlink and I am trying to add spinner when you clink on the link.
Below is the code for the spinner, but it is not working for the hyperlink.
<script type="text/javascript">
function Spinner() {
document.getElementById("spinning").style.display = "block";
document.getElementById("testdiv").style.display = "none";
}
</script>
<div id="spinning" style="display: none;">
<span>loading...</span>
</div>
<div id="testdiv">
Hello, this is link for the test url
<asp:HyperLink ID="linkurl" runat="server" NavigateUrl="~/test.aspx" OnClientClick="Spinner(); return true;">Testing</asp:HyperLink>
</div>
Can any one help me on this?
Thanks!
推荐答案
这篇关于如何使用javascript在点击超链接时显示微调器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!