自动跳转JS代码

public static void TipAndRedirect(string msg, string goUrl, string second)
{
HttpContext.Current.Response.Write("<meta http-equiv='refresh' content='" + second + ";url=" + goUrl + "'>");
HttpContext.Current.Response.Write("<br/><br/><p align=center><div align='center' style="size:12px">&nbsp;&nbsp;&nbsp;&nbsp;" + msg.Replace("!", "") + ",页面2秒内跳转!<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;<a href="" + goUrl + "">如果没有跳转,请点击!</a></div></p>");
HttpContext.Current.Response.End();
}

原文地址:https://www.cnblogs.com/siyechenmu/p/4503061.html