如何在弹出js窗口后刷新页面? [英] How do I refresh the page after pop up window of js?
本文介绍了如何在弹出js窗口后刷新页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嘿伙计们我有一个使用客户端脚本的消息框。现在,我想在弹出窗口出现后刷新页面。这是我的代码。
我尝试过:
Hey guys i have a message box using client script. Now, i want to refresh the page after the pop up window appear. here is my code.
What I have tried:
ClientScript.RegisterStartupScript(Me.GetType, "alert", "alert('This student record already exist');", True)
推荐答案
只需添加另一行JavaScript代码,
Just add another line of JavaScript code there,
ClientScript.RegisterStartupScript(Me.GetType, "alert", "alert('This student record already exist');window.location.reload();", True)
这篇关于如何在弹出js窗口后刷新页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文